我正在使用Liip\FunctionalTestBundle单元测试,它运行得很好.
AppCategoryControllerTest.php:
class AppCategoryControllerTest extends BoEditoAuthWebTestCase
{
public function setUp()
{
parent::setUp();
// It returns an array of class paths
$this->loadFixtures($this->getAllDataFixtures());
}
//...
}
Run Code Online (Sandbox Code Playgroud)
现在我想用Behat测试装置.
怎么可能?
FeatureContext.php:
/**
* @BeforeScenario @createSchema
*
* load my fixtures with Liip\FunctionalTestBundle\Test\WebTestCase
*/
public function createDatabase()
{
// What can I do here?
}
Run Code Online (Sandbox Code Playgroud)