*/
class ApiBlockInfoTraitTest extends MediaWikiTestCase {
/**
- * @dataProvider provideGetBlockInfo
+ * @dataProvider provideGetBlockDetails
*/
- public function testGetBlockInfo( $block, $expectedInfo ) {
+ public function testGetBlockDetails( $block, $expectedInfo ) {
$mock = $this->getMockForTrait( ApiBlockInfoTrait::class );
- $info = TestingAccessWrapper::newFromObject( $mock )->getBlockInfo( $block );
+ $info = TestingAccessWrapper::newFromObject( $mock )->getBlockDetails( $block );
$subset = array_merge( [
'blockid' => null,
'blockedby' => '',
$this->assertArraySubset( $subset, $info );
}
- public static function provideGetBlockInfo() {
+ public static function provideGetBlockDetails() {
return [
'Sitewide block' => [
new Block(),