This topic contains 3 replies, has 2 voices, and was last updated by archy_bold 7 years, 8 months ago.
- Topic
Hi there.
I’m trying to functional test an update form for a custom entity. I’ve found similar examples for things like Accounts and Calls, but I’ve got a bit of an issue with requesting the page, when I request a URL, I only get the loading screen HTML, which means I can’t see and submit the form.
Here’s my code:
12345678910111213141516171819202122public function testUpdate(){$id = $this->getMainEntityId();$crawler = $this->client->request('GET',$this->getUrl('[route]', array('id' => $id)));$this->client->followRedirects(true);/** @var Form $form */$form = $crawler->selectButton('Save And Close')->form();$this->client->followRedirects(true);$crawler = $this->client->submit($form);$result = $this->client->getResponse();$this->assertHtmlResponseStatusCodeEquals($result, 200);$this->assertContains("Customer saved", $crawler->html());return $id;}How can I get the crawler to move past the loading screen?
Thanks,
Simon
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.