You are here

protected function AbstractOpignoTestCase::configureOGGroupType in Opigno 7.0

File

tests/AbstractOpignoTestCase.inc, line 53
Defines the base class for Opigno unit testing. This base class contains re-usable logic that will make it easier and faster to write Opigno-specific unit tests. This class will also configure all modules to work correctly for Opigno.

Class

AbstractOpignoTestCase
@file Defines the base class for Opigno unit testing. This base class contains re-usable logic that will make it easier and faster to write Opigno-specific unit tests. This class will also configure all modules to work correctly for Opigno.

Code

protected function configureOGGroupType($type) {
  $edit = array();
  $edit['og_group_type'] = 'group';
  $this
    ->drupalPost('admin/structure/types/manage/' . str_replace('-', '_', $type), $edit, t("Save content type"));
}