Tôi đang sử dụng Liip\FunctionalTestBundle
để kiểm tra Đơn vị, nó hoạt động rất tốt.Làm thế nào để sử dụng Behat với Liip FunctionalTestBundle trong Symfony2?
AppCategoryControllerTest.php:
class AppCategoryControllerTest extends BoEditoAuthWebTestCase
{
public function setUp()
{
parent::setUp();
// It returns an array of class paths
$this->loadFixtures($this->getAllDataFixtures());
}
//...
}
Bây giờ tôi muốn sử dụng đồ đạc thử nghiệm của tôi với Behat.
Làm cách nào có thể?
FeatureContext.php:
/**
* @BeforeScenario @createSchema
*
* load my fixtures with Liip\FunctionalTestBundle\Test\WebTestCase
*/
public function createDatabase()
{
// What can I do here?
}