<?php
+use MediaWiki\Block\DatabaseBlock;
+
/**
* @group API
* @group Database
public function testBlockedWithUserrights() {
global $wgUser;
- $block = new Block( [ 'address' => $wgUser, 'by' => $wgUser->getId(), ] );
+ $block = new DatabaseBlock( [ 'address' => $wgUser, 'by' => $wgUser->getId(), ] );
$block->insert();
try {
$this->setPermissions( true, true );
- $block = new Block( [ 'address' => $user, 'by' => $user->getId() ] );
+ $block = new DatabaseBlock( [ 'address' => $user, 'by' => $user->getId() ] );
$block->insert();
try {
'log_title' => strtr( $user->getName(), ' ', '_' )
],
__METHOD__,
- [ 'change_tag_def' => [ 'INNER JOIN', 'ctd_id = ct_tag_id' ] ]
+ [ 'change_tag_def' => [ 'JOIN', 'ctd_id = ct_tag_id' ] ]
)
);
}