Skip to content

Commit 0808ddf

Browse files
MAGETWO-39857: Event 'customer_save_after_data_object' dispatches a few times
1 parent 2fca4c5 commit 0808ddf

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

app/code/Magento/Quote/Test/Unit/Model/Observer/Backend/CustomerQuoteTest.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ public function testDispatchNoCustomerGroupChange()
101101
/**
102102
* @param bool $isWebsiteScope
103103
* @param array $websites
104-
* @param int $quoteId
105104
* @dataProvider dispatchDataProvider
106105
*/
107-
public function testDispatch($isWebsiteScope, $websites, $quoteId)
106+
public function testDispatch($isWebsiteScope, $websites)
108107
{
109108
$this->configMock->expects($this->once())
110109
->method('isWebsiteScope')
@@ -167,14 +166,10 @@ public function testDispatch($isWebsiteScope, $websites, $quoteId)
167166
public function dispatchDataProvider()
168167
{
169168
return [
170-
[true, ['website1'], 3],
171-
[true, ['website1', 'website2'], 3],
172-
[false, ['website1'], 3],
173-
[false, ['website1', 'website2'], 3],
174-
[true, ['website1'], null],
175-
[true, ['website1', 'website2'], null],
176-
[false, ['website1'], null],
177-
[false, ['website1', 'website2'], null],
169+
[true, ['website1']],
170+
[true, ['website1', 'website2']],
171+
[false, ['website1']],
172+
[false, ['website1', 'website2']],
178173
];
179174
}
180175
}

0 commit comments

Comments
 (0)