Test cleanup: drop equalTo

Can use a shortcut where we pass the expected value directly.  Verified
that we're still asserting equality.

Change-Id: I63512488c50e599df23d5dae2a5064218e311e90
This commit is contained in:
Adam Wight 2019-11-11 12:57:09 +01:00
parent b7a7457ffd
commit bde9e175a8

View file

@ -89,7 +89,7 @@ class CiteTest extends MediaWikiTestCase {
$mockOutput->expects( $this->once() )
->method( 'setProperty' )
->with( $this->equalTo( Cite::BOOK_REF_PROPERTY ), $this->equalTo( true ) );
->with( Cite::BOOK_REF_PROPERTY, true );
$cite = new Cite();
$cite->ref( 'contentA', [ 'name' => 'a' ], $mockParser, $mockPPframe );