mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:00:21 +00:00
Tests
This commit is contained in:
parent
a5b1843b36
commit
220c910de4
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class DeleteTest extends ApiTest
|
||||||
{
|
{
|
||||||
$this->loadFixture(__DIR__ . '/../../../../../datasets/photo/photo.fixture.php', DI::dba());
|
$this->loadFixture(__DIR__ . '/../../../../../datasets/photo/photo.fixture.php', DI::dba());
|
||||||
|
|
||||||
$delete = new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::DELETE]);
|
$delete = new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
|
||||||
$response = $delete->run([], ['photo_id' => '709057080661a283a6aa598501504178']);
|
$response = $delete->run([], ['photo_id' => '709057080661a283a6aa598501504178']);
|
||||||
|
|
||||||
$responseText = (string)$response->getBody();
|
$responseText = (string)$response->getBody();
|
||||||
|
|
|
@ -46,7 +46,7 @@ class DeleteTest extends ApiTest
|
||||||
{
|
{
|
||||||
$this->loadFixture(__DIR__ . '/../../../../../datasets/photo/photo.fixture.php', DI::dba());
|
$this->loadFixture(__DIR__ . '/../../../../../datasets/photo/photo.fixture.php', DI::dba());
|
||||||
|
|
||||||
$delete = new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::DELETE]);
|
$delete = new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST]);
|
||||||
$response = $delete->run([], ['album' => 'test_album']);
|
$response = $delete->run([], ['album' => 'test_album']);
|
||||||
|
|
||||||
$responseText = (string)$response->getBody();
|
$responseText = (string)$response->getBody();
|
||||||
|
|
Loading…
Reference in a new issue