X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsite%2FSiteImporterTest.php;h=a49f06cfede1da59aaa0c151ddbc062f989827cc;hb=283962b59ec3f01f6ab12c7948191ee60c3a9a0d;hp=b11b1a9f6bb276ab605a2a21eeed17e2fe991a94;hpb=fd9178e4c3cd13e178d8805929490d899dfd5876;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/site/SiteImporterTest.php b/tests/phpunit/includes/site/SiteImporterTest.php index b11b1a9f6b..a49f06cfed 100644 --- a/tests/phpunit/includes/site/SiteImporterTest.php +++ b/tests/phpunit/includes/site/SiteImporterTest.php @@ -34,11 +34,10 @@ class SiteImporterTest extends PHPUnit_Framework_TestCase { private function newSiteImporter( array $expectedSites, $errorCount ) { $store = $this->getMock( 'SiteStore' ); - $that = $this; $store->expects( $this->once() ) ->method( 'saveSites' ) - ->will( $this->returnCallback( function ( $sites ) use ( $expectedSites, $that ) { - $that->assertSitesEqual( $expectedSites, $sites ); + ->will( $this->returnCallback( function ( $sites ) use ( $expectedSites ) { + $this->assertSitesEqual( $expectedSites, $sites ); } ) ); $store->expects( $this->any() )