aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cron
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-10-22 11:27:07 -0400
committerIgor Wiedler <igor@wiedler.ch>2012-11-10 12:02:55 +0100
commit1e3a5dde7d232054d86f91f6908cc23f8b726fdf (patch)
tree59ca0e288f1d181fd66028babfc52c6cc294ce07 /tests/cron
parenta6428c8dc3c211675da5e7e58503849791d2d3e5 (diff)
downloadforums-1e3a5dde7d232054d86f91f6908cc23f8b726fdf.tar
forums-1e3a5dde7d232054d86f91f6908cc23f8b726fdf.tar.gz
forums-1e3a5dde7d232054d86f91f6908cc23f8b726fdf.tar.bz2
forums-1e3a5dde7d232054d86f91f6908cc23f8b726fdf.tar.xz
forums-1e3a5dde7d232054d86f91f6908cc23f8b726fdf.zip
[feature/compiled-dic] Remove old test
PHPBB3-11152
Diffstat (limited to 'tests/cron')
-rw-r--r--tests/cron/task_provider_test.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/cron/task_provider_test.php b/tests/cron/task_provider_test.php
deleted file mode 100644
index ec853bb3ba..0000000000
--- a/tests/cron/task_provider_test.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
-*
-* @package testing
-* @copyright (c) 2010 phpBB Group
-* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-*
-*/
-
-class phpbb_cron_task_provider_test extends PHPUnit_Framework_TestCase
-{
- public function setUp()
- {
- $this->tasks = array(
- 'phpbb_cron_task_core_dummy_task',
- 'phpbb_cron_task_core_second_dummy_task',
- 'phpbb_ext_testext_cron_dummy_task',
- );
-
- $container = $this->getMock('Symfony\Component\DependencyInjection\TaggedContainerInterface');
- $container
- ->expects($this->once())
- ->method('findTaggedServiceIds')
- ->will($this->returnValue(array_flip($this->tasks)));
- $container
- ->expects($this->any())
- ->method('get')
- ->will($this->returnCallback(function ($name) {
- return new $name;
- }));
-
- $this->provider = new phpbb_cron_task_provider($container);
- }
-
- public function test_manager_finds_shipped_tasks()
- {
- $task_names = array();
- foreach ($this->provider as $task)
- {
- $task_names[] = $task->get_name();
- }
- sort($task_names);
-
- $this->assertEquals(array(
- 'phpbb_cron_task_core_dummy_task',
- 'phpbb_cron_task_core_second_dummy_task',
- 'phpbb_ext_testext_cron_dummy_task',
- ), $task_names);
- }
-}