mirror of
https://github.com/jbcr/SyliusCmsPlugin.git
synced 2026-03-25 17:32:08 +01:00
26 lines
647 B
PHP
Executable File
26 lines
647 B
PHP
Executable File
<?php
|
|
|
|
/*
|
|
* This file has been created by developers from BitBag.
|
|
* Feel free to contact us once you face any issues or want to start
|
|
* another great project.
|
|
* You can find more information about us on https://bitbag.shop and write us
|
|
* an email on mikolaj.krol@bitbag.pl.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\BitBag\SyliusCmsPlugin\Behat\Behaviour;
|
|
|
|
use Sylius\Behat\Behaviour\DocumentAccessor;
|
|
|
|
trait ContainsEmptyListTrait
|
|
{
|
|
use DocumentAccessor;
|
|
|
|
public function isEmpty(): bool
|
|
{
|
|
return false !== strpos($this->getDocument()->find('css', '.message')->getText(), 'There are no results to display');
|
|
}
|
|
}
|