示例#1
0
 /**
  * Return all of the IDs in the fixture of a particular class name.
  * @return A map of fixture-identifier => object-id
  */
 protected function allFixtureIDs($className)
 {
     if ($this->fixture) {
         return $this->fixture->allFixtureIDs($className);
     } else {
         user_error("You've called \$this->objFromFixture() but you haven't specified static \$fixture_file.\n" . "Ensure that static \"\$fixture_file = 'module/tests/fixturefile.yml';\" is specified in your " . get_class($this) . " class.", E_USER_WARNING);
     }
 }