init
This commit is contained in:
22
vendor/codeception/base/tests/cli/GenerateCeptCept.php
vendored
Normal file
22
vendor/codeception/base/tests/cli/GenerateCeptCept.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
$I = new CliGuy($scenario);
|
||||
$I->wantTo('generate sample Cept');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('generate:cept dummy DummyCept');
|
||||
$I->seeFileFound('DummyCept.php', 'tests/dummy');
|
||||
$I->seeInThisFile('$I = new DumbGuy($scenario);');
|
||||
$I->deleteThisFile();
|
||||
|
||||
$I->amGoingTo('create scenario in folder');
|
||||
$I->executeCommand('generate:cept dummy path/DummyCept');
|
||||
$I->seeFileFound('DummyCept.php', 'tests/dummy/path');
|
||||
$I->deleteThisFile();
|
||||
|
||||
$I->amGoingTo('create file with Cept.php suffix');
|
||||
$I->executeCommand('generate:cept dummy DummyCept.php');
|
||||
$I->seeFileFound('DummyCept.php');
|
||||
$I->deleteThisFile();
|
||||
|
||||
$I->amGoingTo('create file without any suffix');
|
||||
$I->executeCommand('generate:cept dummy Dummy');
|
||||
$I->seeFileFound('DummyCept.php');
|
||||
Reference in New Issue
Block a user