1 basis.test private BasisTestCase::getBodyClasses()

Get all body classes on the current page as an array.

Return value

string[]:

File

core/modules/simpletest/tests/basis.test, line 81
Tests for the Basis core theme.

Class

BasisTestCase
Test the addition of supplemental CSS update selectors on the body class.

Code

private function getBodyClasses() {
  $body = current($this->xpath('//body'));
  return explode(' ', (string) $body->attributes()->class);
}