r91029 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91028‎ | r91029 | r91030 >
Date:23:03, 28 June 2011
Author:demon
Status:ok
Tags:
Comment:
Remove superfluous NewDBTest, doesn't test anything afaict
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/NewDBTest.php (deleted) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/NewDBTest.php
@@ -1,38 +0,0 @@
2 -<?php
3 -
4 -/**
5 - * @group Database
6 - */
7 -class NewDBTest extends MediaWikiTestCase {
8 -
9 - function setUp() {
10 - }
11 -
12 - function tearDown() {
13 - }
14 -
15 - function addDBData() {
16 -
17 - //Make a page
18 - $article = new Article( Title::newFromText( 'Foobar' ) );
19 - $article->doEdit( 'FoobarContent',
20 - '',
21 - EDIT_NEW,
22 - false,
23 - User::newFromName( 'UTSysop' ) );
24 - }
25 -
26 - function testBootstrapCreation() {
27 -
28 - $article = new Article( Title::newFromText("UTPage") );
29 -
30 - $this->assertEquals("UTContent", $article->fetchContent(), "Automatic main page creation");
31 -
32 - $article = new Article( Title::newFromText("Foobar") );
33 -
34 - $this->assertEquals("FoobarContent", $article->fetchContent(), "addDBData() adds to the database");
35 -
36 - }
37 -
38 -}
39 -

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79109It's here! It's finally here! The skies are falling, pigs have sprouted wings...soxred9317:15, 28 December 2010

Status & tagging log