/** * Tests that user data is exposed on user page. */ protected function doUserRdfaTests() { $this->drupalLogin($this->root_user); // Feed the HTML into the parser. $graph = $this->getRdfGraph($this->adminUser->getSystemPath()); // User type. $this->assertEqual($graph->type($this->authorUri), 'schema:Person', "User type was found (schema:Person) on user page."); // User name. $expected_value = array('type' => 'literal', 'value' => $this->adminUser->label()); $this->assertTrue($graph->hasProperty($this->authorUri, 'http://schema.org/name', $expected_value), "User name was found (schema:name) on user page."); $this->drupalLogout(); }
/** * Test URI callback. */ function testUriCallback() { $this->assertEqual('user/' . $this->account->id(), $this->account->getSystemPath(), 'Correct user URI.'); }