This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/biography/test.php
2024-01-15 14:31:51 +00:00

23 lines
609 B
PHP

<?php
declare(strict_types=1);
namespace Shimmie2;
class BiographyTest extends ShimmiePHPUnitTestCase
{
public function testBio(): void
{
$this->log_in_as_user();
$this->post_page("biography", ["biography" => "My bio goes here"]);
$this->get_page("user/" . self::$user_name);
$this->assert_text("My bio goes here");
$this->log_in_as_admin();
$this->get_page("user/" . self::$user_name);
$this->assert_text("My bio goes here");
$this->get_page("user/" . self::$admin_name);
$this->assert_no_text("My bio goes here");
}
}