aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cron/manager_test.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-03-07 17:26:31 +0100
committerNils Adermann <naderman@naderman.de>2011-03-07 17:26:31 +0100
commit01dce65aee9dbacacc4d02c3f722ff31e01fb03b (patch)
treefaa5c5d6b486dbcd449dca8c74f0135330586442 /tests/cron/manager_test.php
parent4f14ae94e2afb476e96b52b922342f98ddc66f84 (diff)
downloadforums-01dce65aee9dbacacc4d02c3f722ff31e01fb03b.tar
forums-01dce65aee9dbacacc4d02c3f722ff31e01fb03b.tar.gz
forums-01dce65aee9dbacacc4d02c3f722ff31e01fb03b.tar.bz2
forums-01dce65aee9dbacacc4d02c3f722ff31e01fb03b.tar.xz
forums-01dce65aee9dbacacc4d02c3f722ff31e01fb03b.zip
[ticket/10011] Removing __DIR__ uses I missed in previous commit
PHPBB3-10011
Diffstat (limited to 'tests/cron/manager_test.php')
-rw-r--r--tests/cron/manager_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cron/manager_test.php b/tests/cron/manager_test.php
index 490d3ed225..65d8360fbb 100644
--- a/tests/cron/manager_test.php
+++ b/tests/cron/manager_test.php
@@ -18,7 +18,7 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
{
public function setUp()
{
- $this->manager = new phpbb_cron_manager(__DIR__ . '/task/', 'php');
+ $this->manager = new phpbb_cron_manager(dirname(__FILE__) . '/task/', 'php');
$this->task_name = 'phpbb_cron_task_testmod_dummy_task';
}
@@ -57,7 +57,7 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
public function test_manager_finds_all_ready_tasks_cached()
{
$cache = new phpbb_mock_cache(array('_cron_tasks' => array($this->task_name)));
- $manager = new phpbb_cron_manager(__DIR__ . '/../../phpBB/', 'php', $cache);
+ $manager = new phpbb_cron_manager(dirname(__FILE__) . '/../../phpBB/', 'php', $cache);
$tasks = $manager->find_all_ready_tasks();
$this->assertEquals(1, sizeof($tasks));
@@ -65,7 +65,7 @@ class phpbb_cron_manager_test extends PHPUnit_Framework_TestCase
public function test_manager_finds_only_ready_tasks()
{
- $manager = new phpbb_cron_manager(__DIR__ . '/task2/', 'php');
+ $manager = new phpbb_cron_manager(dirname(__FILE__) . '/task2/', 'php');
$tasks = $manager->find_all_ready_tasks();
$task_names = $this->tasks_to_names($tasks);
$this->assertEquals(array('phpbb_cron_task_testmod_simple_ready'), $task_names);