public function testDeleteRedirectInfoRecord()
 {
     $connection = $this->getMockBuilder('\\SMW\\MediaWiki\\Database')->disableOriginalConstructor()->getMock();
     $connection->expects($this->once())->method('delete')->with($this->anything(), $this->equalTo(array('s_title' => 'Foo', 's_namespace' => 9001)));
     $instance = new RedirectInfoStore($connection);
     $instance->deleteRedirectEntry('Foo', 9001);
     $this->assertEquals(0, $instance->findRedirectIdFor('Foo', 9001));
 }
Ejemplo n.º 2
0
 /**
  * @see RedirectInfoStore::deleteRedirectEntry
  *
  * @since 2.1
  *
  * @param string $title
  * @param integer $namespace
  */
 public function deleteRedirectEntry($title, $namespace)
 {
     return $this->redirectInfoStore->deleteRedirectEntry($title, $namespace);
 }