Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Whenever there is a you need to test some a function defined on some in an element, one you can do it this way:

paste-code-macro
languagegroovy
when:
TestRun testRun = TestRun.builder()
        .buildElementTest("MyLogic4", "Element")

then:
testRun.getElementScript().sumOfCosts("someSku", 5) == 9