Esempio n. 1
0
 public function testIsAllSecuritiesEqualCash()
 {
     $this->assertFalse($this->account->isAllSecuritiesEqualCash());
     $security = $this->account->getSecurities()->first();
     $security->setSymbol(Security::SYMBOL_IDA12);
     $this->assertFalse($this->account->isAllSecuritiesEqualCash());
     foreach ($this->account->getSecurities() as $security) {
         $security->setSymbol(Security::SYMBOL_IDA12);
     }
     $this->assertTrue($this->account->isAllSecuritiesEqualCash());
     $this->account->getSecurities()->clear();
     $this->assertFalse($this->account->isAllSecuritiesEqualCash());
 }