/** * * @return void */ protected function initFetchAllCalls() { $fetchAllForInitAttributes = [['attribute_set_name' => '1', 'attribute_id' => '1'], ['attribute_set_name' => '2', 'attribute_id' => '2']]; $fetchAllForOtherCalls = [['selection_id' => '1', 'option_id' => '1', 'parent_product_id' => '1', 'product_id' => '1', 'position' => '1', 'is_default' => '1']]; $this->connection->method('fetchAll')->with($this->select)->will($this->onConsecutiveCalls($fetchAllForInitAttributes, $fetchAllForOtherCalls, $fetchAllForInitAttributes, $fetchAllForOtherCalls, $fetchAllForInitAttributes, $fetchAllForOtherCalls, $fetchAllForInitAttributes, $fetchAllForOtherCalls, $fetchAllForInitAttributes, $fetchAllForInitAttributes, $fetchAllForInitAttributes, $fetchAllForInitAttributes, $fetchAllForInitAttributes)); }
/** * @param array $tables */ protected function addDroppedTables(array $tables) { $this->connectionAdapter->method('select')->will(call_user_func_array([$this, 'onConsecutiveCalls'], $tables)); }