Repository navigation
Expand file tree
/
Copy pathOrderCest.php
More file actions
48 lines (41 loc) · 1.72 KB
/
Copy pathOrderCest.php
File metadata and controls
48 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
class OrderCest {
public function checkOneFile(CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run order LoadingOrderCept.php');
$I->expect('global bootstrap, initialization, beforeSuite, before, bootstrap(B), test(T), after, afterSuite');
$I->seeFileFound('order.txt','tests/_log');
$I->seeFileContentsEqual("BI([BST])");
}
public function checkForFails(CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run order FailedCept.php --no-exit');
$I->seeFileFound('order.txt','tests/_log');
$I->expect('global bootstrap, initialization, beforeSuite, before, bootstrap, test, fail, after, afterSuite');
$I->seeFileContentsEqual("BI([BSTF])");
}
public function checkSimpleFiles(CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run order --no-exit --group simple');
$I->seeFileFound('order.txt','tests/_log');
$I->seeFileContentsEqual("BI({[BST][BSTF][BST])}");
}
public function checkCestOrder(CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run tests/order/ReorderCest.php --no-exit');
$I->seeFileFound('order.txt','tests/_log');
$I->seeFileContentsEqual("BI([B0123456])");
}
public function checkCodeceptionTest(CliGuy $I)
{
$I->amInPath('tests/data/sandbox');
$I->executeCommand('run order CodeTest.php --no-exit');
$I->seeFileFound('order.txt','tests/_log');
$I->expect('global bootstrap, initialization, beforeSuite, beforeClass, bootstrap, before, after, afterSuite, afterClass');
$I->seeFileContentsEqual("BI({B[C])}");
}
}