Revert "Replace Module::init() with Constructors"
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\Friendica\Photo;
|
||||
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\Api\Friendica\Photo\Delete;
|
||||
use Friendica\Network\HTTPException\BadRequestException;
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
@@ -31,7 +30,7 @@ class DeleteTest extends ApiTest
|
||||
public function testEmpty()
|
||||
{
|
||||
$this->expectException(BadRequestException::class);
|
||||
(new Delete(DI::l10n()))->rawContent();
|
||||
(new Delete())->rawContent();
|
||||
}
|
||||
|
||||
public function testWithoutAuthenticatedUser()
|
||||
@@ -42,7 +41,7 @@ class DeleteTest extends ApiTest
|
||||
public function testWrong()
|
||||
{
|
||||
$this->expectException(BadRequestException::class);
|
||||
(new Delete(DI::l10n(), ['photo_id' => 1]))->rawContent();
|
||||
(new Delete(['photo_id' => 1]))->rawContent();
|
||||
}
|
||||
|
||||
public function testWithCorrectPhotoId()
|
||||
|
||||
Reference in New Issue
Block a user