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\ProductAssociationType;
use Sylius\Behat\Behaviour\ChecksCodeImmutability;
use Sylius\Behat\Page\Admin\Crud\UpdatePage as BaseUpdatePage;
/**
* @author Grzegorz Sadowski <[email protected]>
class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
{
use ChecksCodeImmutability;
* {@inheritdoc}
public function nameIt($name)
$this->getElement('name')->setValue($name);
}
protected function getCodeElement()
return $this->getElement('code');
protected function getDefinedElements()
return array_merge(parent::getDefinedElements(), [
'code' => '#sylius_product_association_type_code',
'name' => '#sylius_product_association_type_name',
]);