From: addshore Date: Tue, 17 Oct 2017 11:10:19 +0000 (+0100) Subject: RevisionUnitTest::testConstructFromArray @covers tags X-Git-Tag: 1.31.0-rc.0~1725^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=ad055bf9cb0275452d18e7ed9991bb6539d9d1c5 RevisionUnitTest::testConstructFromArray @covers tags Change-Id: I3d4b54531ecdb2c29f4669685d9824b6a5e36e4e --- 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(