RevisionUnitTest::testConstructFromArray @covers tags
authoraddshore <addshorewiki@gmail.com>
Tue, 17 Oct 2017 11:10:19 +0000 (12:10 +0100)
committerAddshore <addshorewiki@gmail.com>
Tue, 17 Oct 2017 22:21:33 +0000 (22:21 +0000)
Change-Id: I3d4b54531ecdb2c29f4669685d9824b6a5e36e4e

tests/phpunit/includes/RevisionUnitTest.php

index 89f5a0e..6a30335 100644 (file)
@@ -23,8 +23,10 @@ class RevisionUnitTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider provideConstructFromArray
 
        /**
         * @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() );
                $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
 
        /**
         * @dataProvider provideConstructFromArrayThrowsExceptions
+        * @covers Revision::__construct
+        * @covers Revision::constructFromRowArray
         */
        public function testConstructFromArrayThrowsExceptions( $rowArray, Exception $expectedException ) {
                $this->setExpectedException(
         */
        public function testConstructFromArrayThrowsExceptions( $rowArray, Exception $expectedException ) {
                $this->setExpectedException(