Guest User

Untitled

a guest
Jan 22nd, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. namespace EIP\WellnessBundle\Tests\Controller;
  4.  
  5. use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
  6.  
  7. class ProfileControllerTest extends WebTestCase
  8. {
  9. public function testWellnessProfileIsAccessibleByUser()
  10. {
  11. $client = static::createClient(array(), array(
  12. 'PHP_AUTH_USER' => 'user',
  13. 'PHP_AUTH_PW' => 'userpass',
  14. ));
  15.  
  16. $crawler = $client->request('GET', '/participant/wellness/profile');
  17.  
  18. $crawler = $client->followRedirect();
  19.  
  20. $this->assertTrue($crawler->filter('html:contains("Wellness")')->count() > 0);
  21. }
  22. }
Add Comment
Please, Sign In to add comment