-
Notifications
You must be signed in to change notification settings - Fork 102
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
Showing
11 changed files
with
83 additions
and
51 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
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
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
19 changes: 19 additions & 0 deletions
19
tests/TestApp/Plugin/TestBake/tests/TestCase/Middleware/ExampleMiddlewareTest.php
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,19 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace TestBake\Test\TestCase\Middleware; | ||
|
||
use Cake\TestSuite\TestCase; | ||
|
||
/** | ||
* TestBake\Middleware\ExampleMiddleware Test Case | ||
*/ | ||
class ExampleMiddlewareTest extends TestCase | ||
{ | ||
/** | ||
* Test subject | ||
* | ||
* @var \TestBake\Middleware\ExampleMiddleware | ||
*/ | ||
protected $Example; | ||
} |
44 changes: 44 additions & 0 deletions
44
tests/TestApp/Plugin/TestBake/tests/TestCase/Model/Table/BakeArticlesTableTest.php
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,44 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace TestBake\Test\TestCase\Model\Table; | ||
|
||
use Cake\TestSuite\TestCase; | ||
use TestBake\Model\Table\BakeArticlesTable; | ||
|
||
/** | ||
* TestBake\Model\Table\BakeArticlesTable Test Case | ||
*/ | ||
class BakeArticlesTableTest extends TestCase | ||
{ | ||
/** | ||
* Test subject | ||
* | ||
* @var \TestBake\Model\Table\BakeArticlesTable | ||
*/ | ||
protected $BakeArticles; | ||
|
||
/** | ||
* setUp method | ||
* | ||
* @return void | ||
*/ | ||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
$config = $this->getTableLocator()->exists('BakeArticles') ? [] : ['className' => BakeArticlesTable::class]; | ||
$this->BakeArticles = $this->getTableLocator()->get('BakeArticles', $config); | ||
} | ||
|
||
/** | ||
* tearDown method | ||
* | ||
* @return void | ||
*/ | ||
protected function tearDown(): void | ||
{ | ||
unset($this->BakeArticles); | ||
|
||
parent::tearDown(); | ||
} | ||
} |
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
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
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
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
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
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