51 lines
1020 B
PHP
51 lines
1020 B
PHP
<?php
|
|
/**
|
|
* tests for PhpMyAdmin\Properties\PropertyItem class
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Tests\Properties;
|
|
|
|
use PhpMyAdmin\Properties\PropertyItem;
|
|
use PhpMyAdmin\Tests\AbstractTestCase;
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
|
|
/**
|
|
* Tests for PhpMyAdmin\Properties\PropertyItem class
|
|
*/
|
|
class PropertyItemTest extends AbstractTestCase
|
|
{
|
|
/** @var PropertyItem|MockObject */
|
|
protected $stub;
|
|
|
|
/**
|
|
* Configures global environment.
|
|
*/
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
$this->stub = $this->getMockForAbstractClass(PropertyItem::class);
|
|
}
|
|
|
|
/**
|
|
* tearDown for test cases
|
|
*/
|
|
protected function tearDown(): void
|
|
{
|
|
parent::tearDown();
|
|
unset($this->stub);
|
|
}
|
|
|
|
/**
|
|
* Test for PhpMyAdmin\Properties\PropertyItem::getGroup
|
|
*/
|
|
public function testGetGroup(): void
|
|
{
|
|
$this->assertEquals(
|
|
null,
|
|
$this->stub->getGroup()
|
|
);
|
|
}
|
|
}
|