These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | use AcceptanceTester; |
||
3 | use Codeception\Util\Fixtures; |
||
4 | |||
5 | class PageAccessCest |
||
0 ignored issues
–
show
|
|||
6 | { |
||
7 | public function _before(AcceptanceTester $I) |
||
8 | { |
||
9 | } |
||
10 | |||
11 | public function _after(AcceptanceTester $I) |
||
12 | { |
||
13 | } |
||
14 | |||
15 | // tests |
||
16 | public function tryToTest(AcceptanceTester $I) |
||
17 | { |
||
18 | $I->wantTo('perform actions and see result'); |
||
19 | $I->amOnPage('/'); |
||
20 | $I->see('くらしを楽しむライフスタイルグッズ', '.copy'); |
||
21 | |||
22 | $shopName = $I->grabFromDatabase('dtb_base_info', 'shop_name'); |
||
23 | $I->assertEquals('EC-CUBE3 SHOP', $shopName); |
||
24 | |||
25 | $products = $I->grabFromDatabase('dtb_product', 'status', array('product_id'=>1)); |
||
26 | codecept_debug($products); |
||
27 | |||
28 | $bi = Fixtures::get('baseinfo'); |
||
29 | codecept_debug($bi->getShopName()); |
||
30 | foreach (Fixtures::get('categories') as $category) { |
||
31 | codecept_debug($category->getName()); |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.