Skip to content
Snippets Groups Projects
Commit 11623497 authored by adriazalvarez's avatar adriazalvarez
Browse files

Modify add data test

parent 755a9c18
No related tags found
No related merge requests found
......@@ -121,9 +121,9 @@ public:
void test_handleAddData_sets_preview_workspace_and_spectrum() {
auto dialog = new MantidQt::MantidWidgets::AddWorkspaceDialog(nullptr);
m_presenter->setSelectedSpectrum(0);
m_presenter->setInputWorkspace(m_workspace);
ON_CALL(*m_dataModel, getNumberOfWorkspaces()).WillByDefault(Return(1));
ON_CALL(*m_dataModel, getWorkspace(WorkspaceID(0))).WillByDefault(Return(m_workspace));
EXPECT_CALL(*m_view, updatePreviewWorkspaceNames(m_dataModel->getWorkspaceNames())).Times(Exactly(1));
EXPECT_CALL(*m_view, plotInput(m_workspace, 0)).Times(Exactly(1));
m_presenter->handleAddData(dialog);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment