Example #1
0
 public function testAllowedKeysCanBeDefinedAndFetched()
 {
     $collection = new Collection();
     $collection->setAllowedKeys('allowed_key');
     $this->assertEquals(['allowed_key'], $collection->getAllowedKeys()->toArray());
     $collection->setAllowedKeys(['a', 'b']);
     $this->assertEquals(['a', 'b'], $collection->getAllowedKeys()->toArray());
 }