2022-01-09 14:42:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2022-01-10 23:08:48 +00:00
|
|
|
class LoggedOutCest
|
2022-01-09 14:42:16 +00:00
|
|
|
{
|
2022-01-16 19:03:32 +00:00
|
|
|
private function run(AcceptanceTester $I, string $page, string $see): void
|
|
|
|
{
|
|
|
|
$I->amOnPage($page);
|
|
|
|
$I->see($see);
|
|
|
|
}
|
|
|
|
|
2022-01-09 14:42:16 +00:00
|
|
|
public function root(AcceptanceTester $I)
|
|
|
|
{
|
2022-01-16 19:03:32 +00: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 14:42:16 +00:00
|
|
|
}
|
|
|
|
}
|