コード例 #1
0
ファイル: AbstractGroupTest.php プロジェクト: hybr/jpm
 public function testAllShouldDoNothingWithNotExistingDocuments()
 {
     $group = new AbstractGroup('Model\\Comment');
     $group->forSaved = array('foo', 'bar');
     $group->remove(array('ups'));
     $this->assertSame(array('foo', 'bar'), $group->all());
 }
コード例 #2
0
ファイル: AbstractGroupTest.php プロジェクト: robo47/mandango
 public function testAll()
 {
     $group = new AbstractGroup('Model\\Comment');
     $group->forSaved = array('foo', 'bar', 'foobar', 'barfoo');
     $group->add(array('ups', 'spu'));
     $group->remove(array('bar', 'spu'));
     $this->assertSame(array('foo', 'foobar', 'barfoo', 'ups'), $group->all());
 }