mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:10:13 +00:00
Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule - Add new Module->determineClass catch blocks - Update Module and Router tests
This commit is contained in:
parent
bfcae2f79a
commit
4ee9e21a4f
6 changed files with 122 additions and 41 deletions
|
@ -5,7 +5,7 @@ namespace Friendica\Test\src\App;
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\LegacyModule;
|
||||
use Friendica\Module\PageNotFound;
|
||||
use Friendica\Module\HTTPException\PageNotFound;
|
||||
use Friendica\Module\WellKnown\HostMeta;
|
||||
use Friendica\Test\DatabaseTest;
|
||||
|
||||
|
@ -166,7 +166,7 @@ class ModuleTest extends DatabaseTest
|
|||
{
|
||||
$module = new App\Module();
|
||||
|
||||
$moduleNew = $module->determineModule(new App\Arguments(), []);
|
||||
$moduleNew = $module->determineModule(new App\Arguments());
|
||||
|
||||
$this->assertNotSame($moduleNew, $module);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue