Page MenuHomeWickedGov Phorge

UserEntityTest.php
No OneTemporary

Size
607 B
Referenced Files
None
Subscribers
None

UserEntityTest.php

<?php
namespace MediaWiki\Extension\OAuth\Tests\Entity;
use MediaWiki\Extension\OAuth\Entity\UserEntity;
use MediaWikiIntegrationTestCase;
/**
* @covers \MediaWiki\Extension\OAuth\Entity\UserEntity
* @group OAuth
* @group Database
*/
class UserEntityTest extends MediaWikiIntegrationTestCase {
public function testProperties() {
$userEntity = UserEntity::newFromMWUser(
$this->getTestUser()->getUser()
);
$this->assertSame(
$this->getTestUser()->getUser()->getId(),
$userEntity->getIdentifier(),
'User identifier should be the same as the id of the user it represents'
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Aug 18, 16:13 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a7/9a/a6560af160e74cb2065f770cd50d
Default Alt Text
UserEntityTest.php (607 B)

Event Timeline