protected function ScaldWebTestCase::addAtomAction in Scald: Media Management made easy 7
Add an action bit.
3 calls to ScaldWebTestCase::addAtomAction()
- ScaldAtomEntityTestCase::testScaldAtomManual in tests/
scald.test - Manual atom CRUD test.
- ScaldAtomEntityTestCase::testScaldAtomPermissions in tests/
scald.test - Permission tests.
- ScaldLocalizeTestCase::testAtomTypeTranslation in tests/
scald.test - Tests if it is possible to translate atom types.
File
- tests/
scald.test, line 89 - Tests for scald.module.
Class
- ScaldWebTestCase
- Defines a base class for testing the Scald module.
Code
protected function addAtomAction($atom, $action_name) {
$actions = scald_actions();
$atom->actions |= $actions[$action_name]['bitmask'];
scald_atom_save($atom);
$atom = scald_fetch($atom->sid, TRUE);
}