-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c9c0d7
commit 73ca3e2
Showing
2 changed files
with
52 additions
and
1 deletion.
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,36 @@ | ||
<?php | ||
|
||
namespace SwaggerBake\Test\TestCase; | ||
|
||
use Cake\TestSuite\IntegrationTestTrait; | ||
use Cake\TestSuite\TestCase; | ||
|
||
class ControllerTest extends TestCase | ||
{ | ||
use IntegrationTestTrait; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public $fixtures = [ | ||
'plugin.SwaggerBake.Departments', | ||
]; | ||
|
||
public function setUp(): void | ||
{ | ||
parent::setUp(); // TODO: Change the autogenerated stub | ||
static::setAppNamespace('SwaggerBakeTest\App'); | ||
} | ||
|
||
public function testSwaggerIndex() | ||
{ | ||
$this->get('/'); | ||
$this->assertResponseOk(); | ||
} | ||
|
||
public function testRedocIndex() | ||
{ | ||
$this->get('/?doctype=redoc'); | ||
$this->assertResponseOk(); | ||
} | ||
} |
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