9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Mtf\Client\BrowserInterface;
52 $this->customer->persist();
55 $this->objectManager->create(LogInCustomerOnStorefront::class, [
'customer' => $this->customer])->run();
59 $this->objectManager->create(LogOutCustomerOnStorefront::class)->run();
71 if (substr($expectedProtocol, -3) !==
"://") {
72 $expectedProtocol .=
'://';
75 \PHPUnit\Framework\Assert::assertStringStartsWith(
77 $this->browser->getUrl(),
78 "$expectedProtocol is not used." 89 return 'Unsecured URLs are used for Storefront pages.';
assertUsedProtocol($expectedProtocol)
processAssert(BrowserInterface $browser, Customer $customer)