Closed (fixed)
Project:
Libraries API
Version:
7.x-2.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 22:52 UTC
Updated:
20 Mar 2012 at 18:50 UTC
Jump to comment: Most recent file
Comments
Comment #2
tstoecklerAhh, I'm an idiot.
Comment #4
sunWe will still need setUp() to load the libraries.module that contains the functions we want to call.
Tests can be run without installing the corresponding/originating module.
Missing "function " prefix here ;)
Comment #5
suntest methods are not static :)
As of now, we also don't specify any visibility for test methods, so just make that "function testFoo()"
Comment #6
tstoeckleroh God, I knew it was late, but I didn't think it'd be that late. :)
I guess I'll stop for now. This is getting worse and worse :)
Thanks for the review though.
I'll take this for a spin in the next few days.
Comment #7
tstoecklerHere we go.
Comment #9
sunThe unit test needs to manually load Libraries module, because it may not be enabled in the parent site that runs the test - hence, nothing in libraries.module is loaded.
I.e.:
Comment #10
tstoecklerAhh, I didn't know that. Thanks!
Comment #11
sunLooks good to me. Hopefully the testbot will confirm. :)
Comment #12
tstoecklerThanks again for the reviews.
Committed this to 7.x-2.x
http://drupal.org/commitlog/commit/10030/8f8f9b4594a4a001171834f193b242c...