You are here

protected function AbstractOpignoTestCase::configureOGContentType in Opigno 7.0

1 call to AbstractOpignoTestCase::configureOGContentType()
AbstractOpignoTestCase::configureOpigno in tests/AbstractOpignoTestCase.inc

File

tests/AbstractOpignoTestCase.inc, line 64
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 configureOGContentType($type) {
  $edit = array();
  $edit['og_group_content_type'] = 'og_content';
  $this
    ->drupalPost('admin/structure/types/manage/' . str_replace('-', '_', $type), $edit, t("Save content type"));
}