spec\Sylius\Bundle\UiBundle\Twig\SortByExtensionSpec::it_throws_an_exception_if_the_property_is_not_found_on_objects PHP Метод

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

public it_throws_an_exception_if_the_property_is_not_found_on_objects ( Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface $firstSample, Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface $secondSample, Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface $thirdSample )
$firstSample Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface
$secondSample Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface
$thirdSample Sylius\Bundle\UiBundle\spec\Fixtures\SampleInterface
    function it_throws_an_exception_if_the_property_is_not_found_on_objects(SampleInterface $firstSample, SampleInterface $secondSample, SampleInterface $thirdSample)
    {
        $arrayBeforeSorting = [$firstSample, $secondSample, $thirdSample];
        $this->shouldThrow(NoSuchPropertyException::class)->during('sortBy', [$arrayBeforeSorting, 'nonExistingProperty']);
    }