mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-09-24 02:38:57 +00:00
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:
parent
b7a7457ffd
commit
bde9e175a8
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue