-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] Created basic integration test
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |