| 1 | <?php |
||
| 5 | class PageAccessCest |
||
| 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 |