8 use \Magento\Framework\Registry;
30 'value' => \Magento\Customer\Model\Customer::class,
32 $this->registry->register($this->data[
'key'], $this->data[
'value']);
37 unset($this->registry);
42 $this->assertEquals($this->data[
'value'], $this->registry->registry($this->data[
'key']));
43 $this->assertNull($this->registry->registry($this->data[
'value']));
50 $this->registry->register($key,
$value);
51 $this->assertEquals(
$value, $this->registry->registry($key));
54 $this->registry->register($key,
$value, $graceful);
62 $this->registry->register($this->data[
'key'], $this->data[
'value']);
69 $this->registry->register($key, $valueObj);
70 $this->assertEquals($valueObj, $this->registry->registry($key));
71 $this->registry->unregister($key);
72 $this->assertNull($this->registry->registry($key));
73 $this->registry->unregister($this->data[
'key']);
74 $this->assertNull($this->registry->registry($this->data[
'key']));