Remove meaningless constructor tests
These tests do effectively only one thing: Test if the constructor succeeds without throwing an exception. But these constructors are all trivial and can't even do that. They are still covered by all the other tests that also involve the constructor. Change-Id: I206da47fd93a8ecbb08271390ecc1307ffe9df4e
This commit is contained in:
parent
7efb44284e
commit
62a94f4d24
3 changed files with 0 additions and 18 deletions
|
|
@ -7,13 +7,6 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
|
|||
|
||||
/**
|
||||
* @covers \MailAddress::__construct
|
||||
*/
|
||||
public function testConstructor() {
|
||||
$ma = new MailAddress( 'foo@bar.baz', 'UserName', 'Real name' );
|
||||
$this->assertInstanceOf( MailAddress::class, $ma );
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \MailAddress::newFromUser
|
||||
*/
|
||||
public function testNewFromUser() {
|
||||
|
|
|
|||
|
|
@ -12,12 +12,6 @@ use RuntimeException;
|
|||
*/
|
||||
class FilePathTest extends MediaWikiUnitTestCase {
|
||||
|
||||
public function testConstructor() {
|
||||
$path = new FilePath( 'dummy/path', '/local', '/remote' );
|
||||
|
||||
$this->assertInstanceOf( FilePath::class, $path );
|
||||
}
|
||||
|
||||
public function testGetterSimple() {
|
||||
$path = new FilePath( 'dummy/path', '/local', '/remote' );
|
||||
|
||||
|
|
|
|||
|
|
@ -48,11 +48,6 @@ class ContentRendererTest extends MediaWikiUnitTestCase {
|
|||
$this->globalIdGenerator = $this->createMock( GlobalIdGenerator::class );
|
||||
}
|
||||
|
||||
public function testConstructor() {
|
||||
$renderer = new ContentRenderer( $this->contentHandlerFactory, $this->globalIdGenerator );
|
||||
$this->assertInstanceOf( ContentRenderer::class, $renderer );
|
||||
}
|
||||
|
||||
/**
|
||||
* This method tests the getParserOutput method. It is expected that the method will return a ParserOutput
|
||||
* object with a render ID, cache revision ID, and revision timestamp.
|
||||
|
|
|
|||
Loading…
Reference in a new issue