2022-01-09 23:42:16 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2022-01-11 08:08:48 +09:00
|
|
|
class LoggedOutCest
|
2022-01-09 23:42:16 +09:00
|
|
|
{
|
2022-01-17 04:03:32 +09:00
|
|
|
private function run(AcceptanceTester $I, string $page, string $see): void
|
|
|
|
{
|
|
|
|
$I->amOnPage($page);
|
|
|
|
$I->see($see);
|
|
|
|
}
|
|
|
|
|
2022-01-09 23:42:16 +09:00
|
|
|
public function root(AcceptanceTester $I)
|
|
|
|
{
|
2022-01-17 04:03:32 +09:00
|
|
|
$this->run($I, '/', 'Feed');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function loginPage(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/main/login', 'Login');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function registerPage(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/main/register', 'Register');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function feed(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/feed/public', 'Feed');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function faq(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/doc/faq', 'What is this site?');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function tos(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/doc/tos', 'TOS');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function privacy(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/doc/privacy', 'Privacy');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function source(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/doc/source', 'Source');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function version(AcceptanceTester $I)
|
|
|
|
{
|
|
|
|
$this->run($I, '/doc/version', 'GNU social 3');
|
2022-01-09 23:42:16 +09:00
|
|
|
}
|
|
|
|
}
|