Skip to content

Commit

Permalink
add spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 9, 2024
1 parent 37adcf9 commit 3f656da
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/Api/SpecificationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Api;

use App\Tests\HttpTestCase;

/**
* SpecificationTest
*
* @author Christoph Kappestein <christoph.kappestein@gmail.com>
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link http://phpsx.org
*/
class SpecificationTest extends HttpTestCase
{
public function testGetBackend()
{
$response = $this->sendRequest('/system/generator/spec-typeapi?filter=backend', 'GET');

$this->assertEquals(200, $response->getStatusCode());
}

public function testGetConsumer()
{
$response = $this->sendRequest('/system/generator/spec-typeapi?filter=consumer', 'GET');

$this->assertEquals(200, $response->getStatusCode());
}
}

0 comments on commit 3f656da

Please sign in to comment.