id = self::ID;
$collector = new RetailcrmDaemonCollector(
$customer,
self::KEY
);
$js = $collector->buildScript()->getJs();
$this->assertContains('customerId', $js);
$this->assertContains('', $js);
}
public function testBuildJsWithoutCustomer()
{
$customer = new Customer;
$collector = new RetailcrmDaemonCollector(
$customer,
self::KEY
);
$js = $collector->buildScript()->getJs();
$this->assertNotContains('customerId', $js);
$this->assertContains('', $js);
}
}