Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/bake/tests/test_case.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* {{ fullClassName }} Test Case
{% if isController or isCommand %}
*
* @uses \{{ fullClassName }}
* @link \{{ fullClassName }}
{% endif %}
*/
class {{ className }}Test extends TestCase
Expand Down Expand Up @@ -123,7 +123,7 @@ class {{ className }}Test extends TestCase
* Test {{ method }} method
*
* @return void
* @uses \{{ fullClassName }}::{{ method }}()
* @link \{{ fullClassName }}::{{ method }}()
*/
public function test{{ method|camelize }}(): void
{
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/Command/AllCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ public function testExecuteWithPrefix()
}

/**
* Test docblock @ uses generated for test methods
* Test docblock @ link generated for test methods
*
* @return void
*/
public function testGenerateUsesDocBlockController()
public function testGenerateLinkDocBlockController()
{
$path = APP;
$testsPath = ROOT . 'tests' . DS;
Expand All @@ -213,11 +213,11 @@ public function testGenerateUsesDocBlockController()

$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFileContains(
'@uses \Bake\Test\App\Controller\ProductsController::index()',
'@link \Bake\Test\App\Controller\ProductsController::index()',
$testsPath . 'TestCase/Controller/ProductsControllerTest.php',
);
$this->assertFileContains(
'@uses \Bake\Test\App\Model\Table\ProductsTable::validationDefault()',
'@link \Bake\Test\App\Model\Table\ProductsTable::validationDefault()',
$testsPath . 'TestCase/Model/Table/ProductsTableTest.php',
);
$this->assertOutputContains('Bake All complete');
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/Command/CommandCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ public function testGenerateUsesDocBlock()

$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFileContains(
'@uses \Bake\Test\App\Command\DocblockCommand::buildOptionParser()',
'@link \Bake\Test\App\Command\DocblockCommand::buildOptionParser()',
$testsPath . 'TestCase/Command/DocblockCommandTest.php',
);
$this->assertFileContains(
'@uses \Bake\Test\App\Command\DocblockCommand::execute()',
'@link \Bake\Test\App\Command\DocblockCommand::execute()',
$testsPath . 'TestCase/Command/DocblockCommandTest.php',
);
}
Expand All @@ -142,11 +142,11 @@ public function testGenerateUsesDocBlockPlugin()

$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFileContains(
'@uses \BakeTest\Command\DocblockCommand::buildOptionParser()',
'@link \BakeTest\Command\DocblockCommand::buildOptionParser()',
$testsPath . 'TestCase/Command/DocblockCommandTest.php',
);
$this->assertFileContains(
'@uses \BakeTest\Command\DocblockCommand::execute()',
'@link \BakeTest\Command\DocblockCommand::execute()',
$testsPath . 'TestCase/Command/DocblockCommandTest.php',
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Command/TestCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ public function testGenerateUsesDocBlockController()

$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFileContains(
'@uses \Bake\Test\App\Controller\ProductsController::index()',
'@link \Bake\Test\App\Controller\ProductsController::index()',
$testsPath . 'TestCase/Controller/ProductsControllerTest.php',
);
}
Expand All @@ -757,7 +757,7 @@ public function testGenerateUsesDocBlockTable()

$this->assertExitCode(CommandInterface::CODE_SUCCESS);
$this->assertFileContains(
'@uses \Bake\Test\App\Model\Table\ProductsTable::validationDefault()',
'@link \Bake\Test\App\Model\Table\ProductsTable::validationDefault()',
$testsPath . 'TestCase/Model/Table/ProductsTableTest.php',
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Test/testBakeCommandHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function tearDown(): void
* Test output method
*
* @return void
* @uses \Bake\Test\App\Command\Helper\ErrorHelper::output()
* @link \Bake\Test\App\Command\Helper\ErrorHelper::output()
*/
public function testOutput(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Test/testBakeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bake\Test\App\Command\OtherExampleCommand Test Case
*
* @uses \Bake\Test\App\Command\OtherExampleCommand
* @link \Bake\Test\App\Command\OtherExampleCommand
*/
class OtherExampleCommandTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/comparisons/Test/testBakeComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function tearDown(): void
* Test startup method
*
* @return void
* @uses \Bake\Test\App\Controller\Component\AppleComponent::startup()
* @link \Bake\Test\App\Controller\Component\AppleComponent::startup()
*/
public function testStartup(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/comparisons/Test/testBakeControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bake\Test\App\Controller\PostsController Test Case
*
* @uses \Bake\Test\App\Controller\PostsController
* @link \Bake\Test\App\Controller\PostsController
*/
class PostsControllerTest extends TestCase
{
Expand All @@ -29,7 +29,7 @@ class PostsControllerTest extends TestCase
* Test index method
*
* @return void
* @uses \Bake\Test\App\Controller\PostsController::index()
* @link \Bake\Test\App\Controller\PostsController::index()
*/
public function testIndex(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/comparisons/Test/testBakeControllerWithoutModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bake\Test\App\Controller\NoModelController Test Case
*
* @uses \Bake\Test\App\Controller\NoModelController
* @link \Bake\Test\App\Controller\NoModelController
*/
class NoModelControllerTest extends TestCase
{
Expand All @@ -20,7 +20,7 @@ class NoModelControllerTest extends TestCase
* Test index method
*
* @return void
* @uses \Bake\Test\App\Controller\NoModelController::index()
* @link \Bake\Test\App\Controller\NoModelController::index()
*/
public function testIndex(): void
{
Expand Down
6 changes: 3 additions & 3 deletions tests/comparisons/Test/testBakeModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function tearDown(): void
* Test findPublished method
*
* @return void
* @uses \Bake\Test\App\Model\Table\ArticlesTable::findPublished()
* @link \Bake\Test\App\Model\Table\ArticlesTable::findPublished()
*/
public function testFindPublished(): void
{
Expand All @@ -69,7 +69,7 @@ public function testFindPublished(): void
* Test doSomething method
*
* @return void
* @uses \Bake\Test\App\Model\Table\ArticlesTable::doSomething()
* @link \Bake\Test\App\Model\Table\ArticlesTable::doSomething()
*/
public function testDoSomething(): void
{
Expand All @@ -80,7 +80,7 @@ public function testDoSomething(): void
* Test doSomethingElse method
*
* @return void
* @uses \Bake\Test\App\Model\Table\ArticlesTable::doSomethingElse()
* @link \Bake\Test\App\Model\Table\ArticlesTable::doSomethingElse()
*/
public function testDoSomethingElse(): void
{
Expand Down
6 changes: 3 additions & 3 deletions tests/comparisons/Test/testBakePrefixControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bake\Test\App\Controller\Admin\PostsController Test Case
*
* @uses \Bake\Test\App\Controller\Admin\PostsController
* @link \Bake\Test\App\Controller\Admin\PostsController
*/
class PostsControllerTest extends TestCase
{
Expand All @@ -29,7 +29,7 @@ class PostsControllerTest extends TestCase
* Test index method
*
* @return void
* @uses \Bake\Test\App\Controller\Admin\PostsController::index()
* @link \Bake\Test\App\Controller\Admin\PostsController::index()
*/
public function testIndex(): void
{
Expand All @@ -40,7 +40,7 @@ public function testIndex(): void
* Test add method
*
* @return void
* @uses \Bake\Test\App\Controller\Admin\PostsController::add()
* @link \Bake\Test\App\Controller\Admin\PostsController::add()
*/
public function testAdd(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Bake\Test\App\Controller\Admin\PostsController Test Case
*
* @uses \Bake\Test\App\Controller\Admin\PostsController
* @link \Bake\Test\App\Controller\Admin\PostsController
*/
class PostsControllerTest extends TestCase
{
Expand All @@ -29,7 +29,7 @@ class PostsControllerTest extends TestCase
* Test index method
*
* @return void
* @uses \Bake\Test\App\Controller\Admin\PostsController::index()
* @link \Bake\Test\App\Controller\Admin\PostsController::index()
*/
public function testIndex(): void
{
Expand All @@ -40,7 +40,7 @@ public function testIndex(): void
* Test add method
*
* @return void
* @uses \Bake\Test\App\Controller\Admin\PostsController::add()
* @link \Bake\Test\App\Controller\Admin\PostsController::add()
*/
public function testAdd(): void
{
Expand Down
Loading