@H_
403_0@
我得到“InvalidArgumentException:当前节点列表为空”.通过
PHPUnit运行
功能测试.这是我写的测试:
public function testAdd()
{
$client = static::createClientWithAuthentication('main');
$crawler = $client->request('GET','en/manage');
$send_button = $crawler->selectButton('submit');
$form = $send_button->form(array(
'PrCompany[email]' => 'test@example.ua','PrCompany[first_name]' => 'Anton','PrCompany[last_name]' => 'Tverdiuh','PrCompany[timezone]' => 'Europe/Amsterdam'
));
$form['PrCompany[companies][1]']->tick();
$client->submit($form);
$this->assertTrue($crawler->filter('html:contains("User is invited")')->count() > 0);
}