role() публичный Метод

public role ( $role, $nodes )
Пример #1
0
 public function testRole()
 {
     $module = new ServerModule($this->container);
     $module->role("role1", "node1");
     $this->assertSame(array("node1" => "node1"), $module->getRole("role1"));
     $this->assertSame("node1", $module->getNode("node1")->getName());
 }