protected function setUp() {
parent::setUp();
-
- $this->doLogin();
+ $this->tablesUsed = array_merge(
+ $this->tablesUsed,
+ [ 'change_tag', 'change_tag_def', 'logging' ]
+ );
}
public function testDelete() {
$dbw = wfGetDB( DB_MASTER );
$this->assertSame( 'custom tag', $dbw->selectField(
- [ 'change_tag', 'logging' ],
- 'ct_tag',
+ [ 'change_tag', 'logging', 'change_tag_def' ],
+ 'ctd_name',
[
'log_namespace' => NS_HELP,
'log_title' => ucfirst( __FUNCTION__ ),
],
__METHOD__,
[],
- [ 'change_tag' => [ 'INNER JOIN', 'ct_log_id = log_id' ] ]
+ [
+ 'change_tag' => [ 'INNER JOIN', 'ct_log_id = log_id' ],
+ 'change_tag_def' => [ 'INNER JOIN', 'ctd_id = ct_tag_id' ]
+ ]
) );
}