20 lines
579 B
PHP
20 lines
579 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
class BiographyTest extends ShimmiePHPUnitTestCase
|
|
{
|
|
public function testBio()
|
|
{
|
|
$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");
|
|
}
|
|
}
|