2019-11-27 11:20:24 +01:00
|
|
|
<?php
|
|
|
|
|
2020-02-21 10:29:53 +01:00
|
|
|
/**
|
|
|
|
* All rights reserved.
|
|
|
|
* See LICENSE file for license details.
|
|
|
|
*/
|
|
|
|
|
2019-11-27 11:20:24 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace __Vendor__\GraphQL\__Package__\Tests\Integration\Controller;
|
|
|
|
|
|
|
|
use OxidEsales\GraphQL\Base\Tests\Integration\TestCase;
|
|
|
|
|
|
|
|
class CategoryTest extends TestCase
|
|
|
|
{
|
2020-02-21 10:29:53 +01:00
|
|
|
public function testGetSingleCategoryWithoutParam(): void
|
2019-11-27 11:20:24 +01:00
|
|
|
{
|
2020-02-21 10:29:53 +01:00
|
|
|
$result = $this->execQuery('query { category }');
|
|
|
|
$this->assertSame(
|
2019-11-27 11:20:24 +01:00
|
|
|
400,
|
2020-02-21 10:29:53 +01:00
|
|
|
$result['status']
|
2019-11-27 11:20:24 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|