Skip to content

Commit

Permalink
[Tests] Created basic integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jul 27, 2023
1 parent cae973d commit 2d2def8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/integration/BasicKernelTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Tests\Integration\Rest;

use Ibexa\Contracts\Core\Repository\Repository;
use Ibexa\Contracts\Test\Core\IbexaKernelTestCase;
use Ibexa\Rest\Server\Controller\Root as RestRootController;

/**
* @coversNothing
*/
final class BasicKernelTest extends IbexaKernelTestCase
{
protected function setUp(): void
{
self::bootKernel();
}

public function testBasicKernelCompiles(): void
{
$this->getIbexaTestCore()->getServiceByClassName(Repository::class);
$this->getIbexaTestCore()->getServiceByClassName(RestRootController::class);
$this->expectNotToPerformAssertions();
}

public function testRouterIsAvailable(): void
{
$router = self::getContainer()->get('router');
$router->match('/api/ibexa/v2/');
$this->expectNotToPerformAssertions();
}
}

0 comments on commit 2d2def8

Please sign in to comment.