for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use AcceptanceTester;
use Codeception\Util\Fixtures;
class PageAccessCest
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.
{
public function _before(AcceptanceTester $I)
$I
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
}
public function _after(AcceptanceTester $I)
// tests
public function tryToTest(AcceptanceTester $I)
$I->wantTo('perform actions and see result');
$I->amOnPage('/');
$I->see('くらしを楽しむライフスタイルグッズ', '.copy');
$shopName = $I->grabFromDatabase('dtb_base_info', 'shop_name');
$I->assertEquals('EC-CUBE3 SHOP', $shopName);
$products = $I->grabFromDatabase('dtb_product', 'status', array('product_id'=>1));
codecept_debug($products);
$bi = Fixtures::get('baseinfo');
codecept_debug($bi->getShopName());
foreach (Fixtures::get('categories') as $category) {
codecept_debug($category->getName());
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.