Skip to content

Commit 30fa960

Browse files
committed
Änderungshinweise Nickvergessen
1 parent 5b12e23 commit 30fa960

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ branches:
3939
- master
4040
- develop
4141
- /^develop-.*$/
42-
- /^dev[/].*$/
4342

4443
install:
4544
- composer install --dev --no-interaction --prefer-source

tests/cron/main_test.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ public function test_construct()
3737
public function test_is_runnable()
3838
{
3939
$task = $this->get_task();
40-
$this->assertEquals($task->is_runnable(), true);
40+
$this->assertTrue($task->is_runnable());
4141
}
4242

4343
public function test_should_run()
4444
{
4545
// 1: Has not run ever
4646
$task = $this->get_task();
47-
$this->assertEquals($task->should_run(), true);
47+
$this->assertTrue($task->should_run());
4848

4949
// 2: Has just run
5050
$task = $this->get_task(time() - 1);
51-
$this->assertEquals($task->should_run(), false);
51+
$this->assertTrue(!$task->should_run());
5252
}
5353

5454
public function test_run()
@@ -59,11 +59,13 @@ public function test_run()
5959

6060
$result = $this->db->sql_query($sql);
6161
$row = $this->db->sql_fetchrow($result);
62+
$this->db->sql_freeresult($result);
6263
$this->assertEquals($row['cnt'], 2);
6364

6465
$sql = 'SELECT snippet_id FROM phpbb_pastebin';
6566
$result = $this->db->sql_query($sql);
6667
$rows = $this->db->sql_fetchrowset($result);
68+
$this->db->sql_freeresult($result);
6769
$this->assertEquals($rows, array(array('snippet_id' => 1), array('snippet_id' => 3)));
6870
}
6971

tests/functional/install_test.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ static protected function setup_extensions()
2020
return array('phpbbde/pastebin');
2121
}
2222

23-
public function test_validate_viewtopic()
24-
{
25-
$crawler = self::request('GET', 'viewtopic.php?f=1&t=1');
26-
$this->assertContains('Welcome to phpBB3', $crawler->filter('h2')->text());
27-
}
28-
2923
public function test_validate_pastebin()
3024
{
3125
$crawler = self::request('GET', 'app.php/pastebin/');

0 commit comments

Comments
 (0)