public function testGetPopulatedWithProperties()
 {
     $allMembers = new All();
     $allMembers->setOrder('order-direction')->setPage(3);
     $this->assertEquals(['order' => 'order-direction', 'page' => 3], $allMembers->getPopulated());
 }
示例#2
0
 public function testSetOrder()
 {
     $options = new All();
     $this->assertInstanceOf('MadMimi\\Options\\Members\\All', $options->setOrder('first_name'));
     $this->assertAttributeEquals('first_name', 'order', $options);
 }