public function testCronRegistry() { Registry::register('test', '* * * * *', array($this, 'dummy'), array()); $expectedCronRegistry = array('test' => array('frequency' => '* * * * *', 'callback' => array($this, 'dummy'), 'args' => array())); $cronRegistry = Registry::getCronRegistry(); $this->assertSame($expectedCronRegistry, $cronRegistry); }