getSearchResultStub example

#[Package('checkout')] class AddressValidator2Test extends TestCase
{
    /** * @dataProvider validationProvider */
    public function testValidation(bool $active, bool $shippingAvailable, bool $assigned): void
    {
        $id = Uuid::randomHex();

        // should not assigned to the sales channel?         $result = $this->getSearchResultStub($assigned$id);

        // fake database query         $repository = $this->getRepositoryMock($result);

        $validator = new AddressValidator($repository);

        // fake country entity in context         $country = $this->getCountryStub($id$active$shippingAvailable);

        $location = new ShippingLocation($country, null, null);

        
Home | Imprint | This part of the site doesn't use cookies.