Failed Conditions
Push — modify-scrutinizeryml ( 361e25...08b4c1 )
by Kentaro
63:54 queued 57:30
created

codeception/PageAccessCest.php (1 issue)

Upgrade to new PHP Analysis Engine

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
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
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