Пример #1
0
 public function testBindCustomerLogout()
 {
     $observer = new \Magento\Framework\Object();
     $this->visitor->setCustomerId('1');
     $this->visitor->bindCustomerLogout($observer);
     $this->assertTrue($this->visitor->getDoCustomerLogout());
     $this->visitor->unsetData();
     $this->visitor->bindCustomerLogout($observer);
     $this->assertNull($this->visitor->getDoCustomerLogout());
 }