From ac5a3a06faec4067d2964dc337eb32c26c0089ab Mon Sep 17 00:00:00 2001
From: Gemma Guest <gemma.guest@stfc.ac.uk>
Date: Tue, 1 Oct 2019 13:46:32 +0100
Subject: [PATCH] Add unit test for instrument-changed

Re #26529
---
 .../RunsTable/RunsTablePresenterProcessingTest.h       | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h b/qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h
index c009f905896..5e0ff1c874b 100644
--- a/qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h
+++ b/qt/scientific_interfaces/test/ISISReflectometry/RunsTable/RunsTablePresenterProcessingTest.h
@@ -111,7 +111,7 @@ public:
     verifyAndClearExpectations();
   }
 
-  void testNotifyInstrumentChanged() {
+  void testNotifyChangeInstrumentRequested() {
     auto presenter = makePresenter(m_view, ReductionJobs());
     auto const instrument = std::string("test_instrument");
     EXPECT_CALL(m_view, getInstrumentName())
@@ -123,6 +123,14 @@ public:
     verifyAndClearExpectations();
   }
 
+  void testNotifyInstrumentChanged() {
+    auto presenter = makePresenter(m_view, ReductionJobs());
+    auto const instrument = std::string("test_instrument");
+    EXPECT_CALL(m_view, setInstrumentName(instrument)).Times(1);
+    presenter.notifyInstrumentChanged(instrument);
+    verifyAndClearExpectations();
+  }
+
   void testRowStateChangedForDefaultRowAndGroup() {
     auto presenter = makePresenter(m_view, oneGroupWithARowModel());
     expectGroupStateCleared();
-- 
GitLab