grav/tests/unit/Grav/Common/BrowserTest.php

52 lines
1007 B
PHP
Raw Normal View History

2016-01-19 14:16:06 +01:00
<?php
use Codeception\Util\Fixtures;
2016-01-29 09:54:14 +01:00
use Grav\Common\Grav;
2016-01-19 14:16:06 +01:00
2016-01-29 09:54:14 +01:00
/**
* Class BrowserTest
*/
2016-01-19 14:16:06 +01:00
class BrowserTest extends \Codeception\TestCase\Test
{
2016-01-29 09:54:14 +01:00
/** @var Grav $grav */
protected $grav;
2021-02-01 10:14:53 +01:00
protected function _before(): void
2016-01-19 14:16:06 +01:00
{
$grav = Fixtures::get('grav');
$this->grav = $grav();
2016-01-19 14:16:06 +01:00
}
2021-02-01 10:14:53 +01:00
protected function _after(): void
2016-01-19 14:16:06 +01:00
{
}
2021-02-01 10:14:53 +01:00
public function testGetBrowser(): void
2019-10-14 09:57:26 +02:00
{
/* Already covered by PhpUserAgent tests */
2016-01-29 09:54:14 +01:00
}
2021-02-01 10:14:53 +01:00
public function testGetPlatform(): void
2019-10-14 09:57:26 +02:00
{
/* Already covered by PhpUserAgent tests */
2016-01-29 09:54:14 +01:00
}
2021-02-01 10:14:53 +01:00
public function testGetLongVersion(): void
2019-10-14 09:57:26 +02:00
{
/* Already covered by PhpUserAgent tests */
2016-01-29 09:54:14 +01:00
}
2021-02-01 10:14:53 +01:00
public function testGetVersion(): void
2019-10-14 09:57:26 +02:00
{
/* Already covered by PhpUserAgent tests */
2016-01-29 09:54:14 +01:00
}
2016-01-19 14:16:06 +01:00
2021-02-01 10:14:53 +01:00
public function testIsHuman(): void
2016-01-19 14:16:06 +01:00
{
//Already Partially covered by PhpUserAgent tests
//Make sure it recognizes the test as not human
2021-02-01 10:14:53 +01:00
self::assertFalse($this->grav['browser']->isHuman());
2016-01-19 14:16:06 +01:00
}
}