From ad055bf9cb0275452d18e7ed9991bb6539d9d1c5 Mon Sep 17 00:00:00 2001 From: addshore Date: Tue, 17 Oct 2017 12:10:19 +0100 Subject: [PATCH] RevisionUnitTest::testConstructFromArray @covers tags Change-Id: I3d4b54531ecdb2c29f4669685d9824b6a5e36e4e --- tests/phpunit/includes/RevisionUnitTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/RevisionUnitTest.php b/tests/phpunit/includes/RevisionUnitTest.php index 89f5a0ecc4..6a30335fdf 100644 --- a/tests/phpunit/includes/RevisionUnitTest.php +++ b/tests/phpunit/includes/RevisionUnitTest.php @@ -23,8 +23,10 @@ class RevisionUnitTest extends MediaWikiTestCase { /** * @dataProvider provideConstructFromArray + * @covers Revision::__construct + * @covers Revision::constructFromRowArray */ - public function testConstructFromArray( $rowArray ) { + public function testConstructFromArray( array $rowArray ) { $rev = new Revision( $rowArray ); $this->assertNotNull( $rev->getContent(), 'no content object available' ); $this->assertEquals( CONTENT_MODEL_JAVASCRIPT, $rev->getContent()->getModel() ); @@ -56,6 +58,8 @@ class RevisionUnitTest extends MediaWikiTestCase { /** * @dataProvider provideConstructFromArrayThrowsExceptions + * @covers Revision::__construct + * @covers Revision::constructFromRowArray */ public function testConstructFromArrayThrowsExceptions( $rowArray, Exception $expectedException ) { $this->setExpectedException( -- 2.20.1