PHP Класс spec\Sylius\Bundle\CoreBundle\Form\DataTransformer\ProductTaxonCollectionToTaxonCollectionTransformerSpec

Автор: Anna Walasek ([email protected])
Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
getMatchers ( )
it_implements_data_transformer_interface ( )
it_is_initializable ( )
it_returns_empty_collection_during_reverse_transform ( ArrayCollection $taxons )
it_returns_empty_collection_during_transform ( )
it_throws_unexpected_type_exception_during_reversing_transformation ( Sylius\Component\Core\Model\TaxonInterface $taxon )
it_throws_unexpected_type_exception_during_transform ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
it_transforms_product_taxons_collection_to_taxon_collection ( Sylius\Component\Core\Model\ProductTaxonInterface $firstProductTaxon, Sylius\Component\Core\Model\ProductTaxonInterface $secondProductTaxon, Sylius\Component\Core\Model\TaxonInterface $firstTaxon, Sylius\Component\Core\Model\TaxonInterface $secondTaxon )
it_transforms_taxons_collection_to_product_taxons_collection ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon, Sylius\Component\Core\Model\TaxonInterface $taxon, Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory )
let ( Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory )

Описание методов

getMatchers() публичный Метод

public getMatchers ( )

it_implements_data_transformer_interface() публичный Метод

it_is_initializable() публичный Метод

public it_is_initializable ( )

it_returns_empty_collection_during_reverse_transform() публичный Метод

public it_returns_empty_collection_during_reverse_transform ( ArrayCollection $taxons )
$taxons Doctrine\Common\Collections\ArrayCollection

it_returns_empty_collection_during_transform() публичный Метод

it_throws_unexpected_type_exception_during_reversing_transformation() публичный Метод

public it_throws_unexpected_type_exception_during_reversing_transformation ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

it_throws_unexpected_type_exception_during_transform() публичный Метод

public it_throws_unexpected_type_exception_during_transform ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
$productTaxon Sylius\Component\Core\Model\ProductTaxonInterface

it_transforms_product_taxons_collection_to_taxon_collection() публичный Метод

public it_transforms_product_taxons_collection_to_taxon_collection ( Sylius\Component\Core\Model\ProductTaxonInterface $firstProductTaxon, Sylius\Component\Core\Model\ProductTaxonInterface $secondProductTaxon, Sylius\Component\Core\Model\TaxonInterface $firstTaxon, Sylius\Component\Core\Model\TaxonInterface $secondTaxon )
$firstProductTaxon Sylius\Component\Core\Model\ProductTaxonInterface
$secondProductTaxon Sylius\Component\Core\Model\ProductTaxonInterface
$firstTaxon Sylius\Component\Core\Model\TaxonInterface
$secondTaxon Sylius\Component\Core\Model\TaxonInterface

it_transforms_taxons_collection_to_product_taxons_collection() публичный Метод

public it_transforms_taxons_collection_to_product_taxons_collection ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon, Sylius\Component\Core\Model\TaxonInterface $taxon, Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory )
$productTaxon Sylius\Component\Core\Model\ProductTaxonInterface
$taxon Sylius\Component\Core\Model\TaxonInterface
$productTaxonFactory Sylius\Component\Resource\Factory\FactoryInterface

let() публичный Метод

public let ( Sylius\Component\Resource\Factory\FactoryInterface $productTaxonFactory )
$productTaxonFactory Sylius\Component\Resource\Factory\FactoryInterface