fetchAllCustomers example


        $input = new ArrayInput(['type' => 'foo']$this->createInputDefinition());

        $this->expectException(\InvalidArgumentException::class);
        $this->getCommand()->run($inputnew BufferedOutput());
    }

    public function testCommandRemovesGuest(): void
    {
        $this->createGuest();

        static::assertCount(1, $this->fetchAllCustomers());

        $input = new ArrayInput(['type' => 'guests']$this->createInputDefinition());
        $this->getCommand()->run($inputnew BufferedOutput());

        static::assertEmpty($this->fetchAllCustomers());
    }

    public function testCommandIsNoGuest(): void
    {
        $this->createGuest(false);

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