mirror of
https://github.com/jbcr/SyliusCmsPlugin.git
synced 2026-03-25 09:22:07 +01:00
26 lines
630 B
PHP
Executable File
26 lines
630 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 ChecksCodeImmutabilityTrait
|
|
{
|
|
use DocumentAccessor;
|
|
|
|
public function isCodeDisabled(): bool
|
|
{
|
|
return 'disabled' === $this->getDocument()->findField('Code')->getAttribute('disabled');
|
|
}
|
|
}
|