File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
tests/OpenCloud/Tests/LoadBalancer/Resource Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ protected function getProperty($property)
244244 * @param Log\LoggerInterface $logger
245245 * @return $this
246246 */
247- public function setLogger (Log \LoggerInterface $ logger )
247+ public function setLogger (Log \LoggerInterface $ logger = null )
248248 {
249249 $ this ->logger = $ logger ;
250250
Original file line number Diff line number Diff line change @@ -343,4 +343,12 @@ public function test_Health_Monitor_Is_Refreshed_With_Bespoke_Method()
343343
344344 $ this ->assertEquals ($ health ->type , 'CONNECT ' );
345345 }
346+
347+ public function testAddNodeToExistingLoadBalancer ()
348+ {
349+ $ lb = $ this ->loadBalancer ;
350+
351+ $ lb ->addNode ('2.2.2.2 ' , 80 );
352+ $ lb ->addNodes ();
353+ }
346354}
You can’t perform that action at this time.
0 commit comments