lmajano
05/25/2022, 10:41 PMAdam Cameron
thisOldDave
06/17/2022, 2:43 PMexistingSchedules = getMockBox().querySim(......);
service.$("existingSchedules", existingSchedules);
in my service existingSchedules
is a local function variable schedule action="list" result="existingSchedules";
this doesn't appear to work if I refactor my code and wrap the cfschedule in a getter I can use
service.$(method="getExistingSchedules", returns=existingSchedules);
and that works fine but I am not really keen on refactoring it that way am I missing something? the documentation implies that you can
This is a great way to simulate cfquery calls, cfdirectory or any other cf tag that returns a query.but doesn't really explain how
tonyjunkes
07/05/2022, 2:26 PMwil-shiftinsert
07/13/2022, 4:22 PMelpete
07/13/2022, 5:26 PMvariables.mockFlash
in your test.elpete
07/13/2022, 5:27 PMsetup()
.lmajano
07/18/2022, 7:18 PMAdam Cameron
"^I pay for the item$": function(){
$world.result = request.registerService.makeTransaction(
$world.price,
$world.money
);
},
VS:
it("pays for the item" => () {
$world.result = request.registerService.makeTransaction(
$world.price,
$world.money
)
}
Why bother?
Are there ppl raising tickets saying "I don't like jasmine-style BDD testing, I can only possibly work with a cucumber DSL"?
If not... it's not a good use of your time.
BTW, @abram what's with the PHP variable name?Adam Cameron
Adam Cameron
sknowlton
07/18/2022, 7:36 PMrequest.testbox
stuff to work, it seemed like a great idea that wasn't able to quite get off the groundsknowlton
07/18/2022, 7:36 PMAdam Cameron
Adam Cameron
request.
you speak of? 😉sknowlton
07/18/2022, 7:38 PMsknowlton
07/18/2022, 7:39 PMlmajano
07/18/2022, 7:41 PMlmajano
07/18/2022, 7:41 PMlmajano
07/18/2022, 7:41 PMlmajano
07/18/2022, 7:41 PMlmajano
07/18/2022, 7:42 PMlmajano
07/18/2022, 7:43 PMAdam Cameron
Adam Cameron
WireBox integration to support ModulesIf you do this... do me a favour? Keep it well separate, and as a separate module like ortus.testbox.wireboxIntegration or something. Why I say it is I see a lot of libraries that are written by CB users that have CB stuff hard-wired into them, where the better approach would be to define interfaces and accept [some manner of object that does this thing]. There's no way there should be any framework (or DI library!) plumbing inside a well-written library-that-works-with-this-framework\
Adam Cameron
lmajano
07/18/2022, 9:16 PMlmajano
07/18/2022, 9:16 PMlmajano
07/18/2022, 9:16 PMAdam Cameron