mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 06:28:40 +00:00
Make count( use global namespace
This commit is contained in:
parent
ebad6f044f
commit
5db3d81d25
|
|
@ -188,7 +188,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
$for = ManyToManyDirectModelMapper::getFor($id, 'to');
|
$for = ManyToManyDirectModelMapper::getFor($id, 'to');
|
||||||
self::assertEquals(\reset($this->model->hasManyDirect)->string, \reset($for)->string);
|
self::assertEquals(\reset($this->model->hasManyDirect)->string, \reset($for)->string);
|
||||||
|
|
||||||
self::assertEquals(1, count(BaseModelMapper::getAll()));
|
self::assertEquals(1, \count(BaseModelMapper::getAll()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testReadArray() : void
|
public function testReadArray() : void
|
||||||
|
|
@ -214,7 +214,7 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
$for = ManyToManyDirectModelMapper::getForArray($id, 'to');
|
$for = ManyToManyDirectModelMapper::getForArray($id, 'to');
|
||||||
self::assertEquals(\reset($this->modelArray['hasManyDirect'])['string'], \reset($for)['string']);
|
self::assertEquals(\reset($this->modelArray['hasManyDirect'])['string'], \reset($for)['string']);
|
||||||
|
|
||||||
self::assertEquals(1, count(BaseModelMapper::getAllArray()));
|
self::assertEquals(1, \count(BaseModelMapper::getAllArray()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testUpdate() : void
|
public function testUpdate() : void
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class DomActionTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
public function testEnums() : void
|
public function testEnums() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(9, count(DomAction::getConstants()));
|
self::assertEquals(9, \count(DomAction::getConstants()));
|
||||||
self::assertEquals(DomAction::getConstants(), array_unique(DomAction::getConstants()));
|
self::assertEquals(DomAction::getConstants(), array_unique(DomAction::getConstants()));
|
||||||
|
|
||||||
self::assertEquals(0, DomAction::CREATE_BEFORE);
|
self::assertEquals(0, DomAction::CREATE_BEFORE);
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class NotifyTypeTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
public function testEnums() : void
|
public function testEnums() : void
|
||||||
{
|
{
|
||||||
self::assertEquals(5, count(NotifyType::getConstants()));
|
self::assertEquals(5, \count(NotifyType::getConstants()));
|
||||||
self::assertEquals(NotifyType::getConstants(), array_unique(NotifyType::getConstants()));
|
self::assertEquals(NotifyType::getConstants(), array_unique(NotifyType::getConstants()));
|
||||||
|
|
||||||
self::assertEquals(0, NotifyType::BINARY);
|
self::assertEquals(0, NotifyType::BINARY);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user