Dumplie\Customer\Tests\Integration\Application\Generic\CheckoutTestCase::test_new_checkout PHP Method

test_new_checkout() public method

public test_new_checkout ( )
    function test_new_checkout()
    {
        $cartId = $this->customerContext->createEmptyCart();
        $command = new NewCheckout((string) $cartId, "Norbert Orzechowicz", "ul. FLorianska 1", "30-300", "Kraków", "PL");
        $this->customerContext->commandBus()->handle($command);
        $this->clear();
        $this->assertTrue($this->customerContext->checkouts()->existsForCart($cartId));
    }