BrowserTest.php 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. use Codeception\Util\Fixtures;
  3. use Grav\Common\Grav;
  4. /**
  5. * Class BrowserTest
  6. */
  7. class BrowserTest extends \Codeception\TestCase\Test
  8. {
  9. /** @var Grav $grav */
  10. protected $grav;
  11. protected function _before()
  12. {
  13. $grav = Fixtures::get('grav');
  14. $this->grav = $grav();
  15. }
  16. protected function _after()
  17. {
  18. }
  19. public function testGetBrowser()
  20. { /* Already covered by PhpUserAgent tests */
  21. }
  22. public function testGetPlatform()
  23. { /* Already covered by PhpUserAgent tests */
  24. }
  25. public function testGetLongVersion()
  26. { /* Already covered by PhpUserAgent tests */
  27. }
  28. public function testGetVersion()
  29. { /* Already covered by PhpUserAgent tests */
  30. }
  31. public function testIsHuman()
  32. {
  33. //Already Partially covered by PhpUserAgent tests
  34. //Make sure it recognizes the test as not human
  35. $this->assertFalse($this->grav['browser']->isHuman());
  36. }
  37. }