/** * Test the getAllActionIDs method */ public function testGetAllActionIDs() { $actions = $this->request->getAllActionIDs(); $total = $this->modx->getCount('modAction'); $this->assertTrue(count($actions) == $total, 'The getAllActionIDs method did not get all of the Actions that exist.'); $actions = $this->request->getAllActionIDs('unit-test'); $total = $this->modx->getCount('modAction', array('namespace' => 'unit-test')); $this->assertTrue(count($actions) == $total, 'The getAllActionIDs method did not filter down by namespace when grabbing actions.'); }