/** * Select how to perform checkout whether guest or registered customer * * @param FixtureInterface $fixture * @return void */ public function checkoutMethod(FixtureInterface $fixture) { /** @var Checkout $fixture */ if ($fixture->isRegisteredCustomer()) { $this->loginCustomer($fixture->getCustomer()); } else { $this->guestCheckout(); $this->clickContinue(); } }