BrowserTest.php 1007 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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(): void
  12. {
  13. $grav = Fixtures::get('grav');
  14. $this->grav = $grav();
  15. }
  16. protected function _after(): void
  17. {
  18. }
  19. public function testGetBrowser(): void
  20. {
  21. /* Already covered by PhpUserAgent tests */
  22. }
  23. public function testGetPlatform(): void
  24. {
  25. /* Already covered by PhpUserAgent tests */
  26. }
  27. public function testGetLongVersion(): void
  28. {
  29. /* Already covered by PhpUserAgent tests */
  30. }
  31. public function testGetVersion(): void
  32. {
  33. /* Already covered by PhpUserAgent tests */
  34. }
  35. public function testIsHuman(): void
  36. {
  37. //Already Partially covered by PhpUserAgent tests
  38. //Make sure it recognizes the test as not human
  39. self::assertFalse($this->grav['browser']->isHuman());
  40. }
  41. }