[TESTS] Fix some failing tests broken by restructuring and dependency updates
This commit is contained in:
parent
46de2d47e9
commit
afa8443949
|
@ -21,7 +21,7 @@ declare(strict_types = 1);
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
namespace App\Tests\Controller;
|
namespace Component\Feed\Tests\Controller;
|
||||||
|
|
||||||
use App\Core\DB\DB;
|
use App\Core\DB\DB;
|
||||||
use App\Core\Security;
|
use App\Core\Security;
|
|
@ -21,14 +21,14 @@ declare(strict_types = 1);
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
namespace App\Tests\Controller;
|
namespace Component\Person\Tests;
|
||||||
|
|
||||||
use App\Core\DB\DB;
|
use App\Core\DB\DB;
|
||||||
use App\Util\GNUsocialTestCase;
|
use App\Util\GNUsocialTestCase;
|
||||||
use Functional as F;
|
use Functional as F;
|
||||||
use Jchook\AssertThrows\AssertThrows;
|
use Jchook\AssertThrows\AssertThrows;
|
||||||
|
|
||||||
class UserPanelTest extends GNUsocialTestCase
|
class PersonSettingsTest extends GNUsocialTestCase
|
||||||
{
|
{
|
||||||
use AssertThrows;
|
use AssertThrows;
|
||||||
|
|
|
@ -110,7 +110,8 @@
|
||||||
"App\\": "src/",
|
"App\\": "src/",
|
||||||
"Plugin\\": "plugins/",
|
"Plugin\\": "plugins/",
|
||||||
"Component\\": "components/"
|
"Component\\": "components/"
|
||||||
}
|
},
|
||||||
|
"exclude-from-classmap": ["/tests/"]
|
||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|
|
@ -45,11 +45,11 @@ services:
|
||||||
|
|
||||||
Plugin\:
|
Plugin\:
|
||||||
resource: '../plugins/*'
|
resource: '../plugins/*'
|
||||||
exclude: '../plugins/*/{scripts,classes,lib,actions,locale,doc}'
|
exclude: '../plugins/*/{scripts,classes,lib,actions,locale,doc,tests}'
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
Component\:
|
Component\:
|
||||||
resource: '../components/*'
|
resource: '../components/*'
|
||||||
exclude: '../components/*/{scripts,classes,lib,actions,locale,doc}'
|
exclude: '../components/*/{scripts,classes,lib,actions,locale,doc,tests}'
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ class SecurityTest extends GNUsocialTestCase
|
||||||
|
|
||||||
public function testRegisterExistingEmail()
|
public function testRegisterExistingEmail()
|
||||||
{
|
{
|
||||||
[$client, ] = self::testRegister('other_new_nickname', 'email@provider.any', 'foobar');
|
[$client, ] = self::testRegister('other_new_nickname', 'taken_user@provider.any', 'foobar');
|
||||||
$this->assertSelectorTextContains('.stacktrace', 'App\Util\Exception\EmailTakenException');
|
$this->assertSelectorTextContains('.stacktrace', 'App\Util\Exception\EmailTakenException');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user