You are here

private function RevisionAllTypeRevisioningTests::getContentTypeBeingAdded in Revision All 7.2

Splits up the URL of of the currently open virtual browser page and returns the last piece of the address. Used to figure out what kind of content is being created.

Return value

string The name of the content type being created.

1 call to RevisionAllTypeRevisioningTests::getContentTypeBeingAdded()
RevisionAllTypeRevisioningTests::nodeRevisioningStatus in tests/revision_all.test
Checks the current virtual browser page to ensure that the "Create new revision" checkbox has the expected checked/unchecked status.

File

tests/revision_all.test, line 172
Tests for Revision All module.

Class

RevisionAllTypeRevisioningTests
Tests the "Revision All" feature and revisioning of individual content types.

Code

private function getContentTypeBeingAdded() {
  $split = preg_split('/\\//', $this
    ->getUrl());
  return end($split);
}