Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Apr 14, 2024
1 parent b17add3 commit f8b21be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Backend/Api/Backup/ExportTest.php
Expand Up @@ -20,6 +20,7 @@

namespace Fusio\Impl\Tests\Backend\Api\Backup;

use Fusio\Impl\Base;
use Fusio\Impl\Tests\Fixture;
use Fusio\Impl\Tests\Normalizer;
use PSX\Framework\Test\ControllerDbTestCase;
Expand Down Expand Up @@ -63,7 +64,9 @@ public function testPost()
$body = (string) $response->getBody();
$data = \json_decode(Normalizer::normalize($body));

$actual = $data->export;
$actual = \json_decode($data->export);
$actual->version = Base::getVersion();
$actual = \json_encode($actual);
$expect = file_get_contents(__DIR__ . '/resource/export.json');

$this->assertEquals(200, $response->getStatusCode(), $body);
Expand Down

0 comments on commit f8b21be

Please sign in to comment.