Commit 24d528d8 authored by xjm's avatar xjm

Issue #2758559 by eporama, leolando.tan, kamalrajsahu21, tstoeckler, larowlan,...

Issue #2758559 by eporama, leolando.tan, kamalrajsahu21, tstoeckler, larowlan, claudiu.cristea: EntityType::setStorageClass() violates its interface
parent 9d3d9301
......@@ -482,6 +482,7 @@ public function getStorageClass() {
public function setStorageClass($class) {
$this->checkStorageClass($class);
$this->handlers['storage'] = $class;
return $this;
}
/**
......
......@@ -165,6 +165,15 @@ public function testGetStorageClass() {
$this->assertSame($controller, $entity_type->getStorageClass());
}
/**
* Tests the setStorageClass() method.
*/
public function testSetStorageClass() {
$controller = $this->getTestHandlerClass();
$entity_type = $this->setUpEntityType(array());
$this->assertSame($entity_type, $entity_type->setStorageClass($controller));
}
/**
* Tests the getListBuilderClass() method.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment