[TESTS] Fix tests
This commit is contained in:
@@ -33,10 +33,6 @@ class PersonSettingsTest extends GNUsocialTestCase
|
||||
{
|
||||
use AssertThrows;
|
||||
|
||||
/**
|
||||
* @covers \App\Controller\PersonSettings::allSettings
|
||||
* @covers \App\Controller\PersonSettings::personalInfo
|
||||
*/
|
||||
public function testPersonalInfo()
|
||||
{
|
||||
$client = static::createClient();
|
||||
@@ -64,10 +60,6 @@ class PersonSettingsTest extends GNUsocialTestCase
|
||||
// static::assertSame('908555842', $changed_user->getPhoneNumber()->getNationalNumber());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \App\Controller\PersonSettings::account
|
||||
* @covers \App\Controller\PersonSettings::allSettings
|
||||
*/
|
||||
public function testEmail()
|
||||
{
|
||||
$client = static::createClient();
|
||||
@@ -86,10 +78,6 @@ class PersonSettingsTest extends GNUsocialTestCase
|
||||
static::assertSame($changed_user->getIncomingEmail(), 'incoming@provider.any');
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \App\Controller\PersonSettings::account
|
||||
* @covers \App\Controller\PersonSettings::allSettings
|
||||
*/
|
||||
public function testCorrectPassword()
|
||||
{
|
||||
$client = static::createClient();
|
||||
@@ -108,10 +96,6 @@ class PersonSettingsTest extends GNUsocialTestCase
|
||||
static::assertTrue($changed_user->checkPassword('this is some test password'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \App\Controller\PersonSettings::account
|
||||
* @covers \App\Controller\PersonSettings::allSettings
|
||||
*/
|
||||
public function testAccountWrongPassword()
|
||||
{
|
||||
$client = static::createClient();
|
||||
@@ -129,11 +113,7 @@ class PersonSettingsTest extends GNUsocialTestCase
|
||||
$this->assertSelectorTextContains('.stacktrace', 'AuthenticationException');
|
||||
}
|
||||
|
||||
// TODO: First actually implement this functionality
|
||||
// /**
|
||||
// * @covers \App\Controller\PersonSettings::allSettings
|
||||
// * @covers \App\Controller\PersonSettings::notifications
|
||||
// */
|
||||
// TODO: First actually implement this functionality
|
||||
// public function testNotifications()
|
||||
// {
|
||||
// $client = static::createClient();
|
||||
|
||||
Reference in New Issue
Block a user