for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\Page\Admin\ShippingCategory;
use Sylius\Behat\Behaviour\ChecksCodeImmutability;
use Sylius\Behat\Page\Admin\Crud\UpdatePage as BaseUpdatePage;
use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface;
/**
* @author Anna Walasek <[email protected]>
class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
{
use ChecksCodeImmutability;
* {@inheritdoc}
protected function getCodeElement()
return $this->getElement('code');
}
protected function getDefinedElements()
return array_merge(parent::getDefinedElements(), [
'code' => '#sylius_shipping_category_code',
'name' => '#sylius_shipping_category_name',
]);