# |
Dec 7th 2017, 14:11 |
neon1024 |
I disagree |
# |
Dec 7th 2017, 14:10 |
birdy247 |
Short term loss long term gain, would rather get things right to save time further down the line |
# |
Dec 7th 2017, 14:10 |
neon1024 |
See what works for you |
# |
Dec 7th 2017, 14:10 |
neon1024 |
Just experiment and have a play about |
# |
Dec 7th 2017, 14:10 |
neon1024 |
You seem to need someone to sign off all your choices before you make them |
# |
Dec 7th 2017, 14:09 |
neon1024 |
I wonder how you get any work done |
# |
Dec 7th 2017, 14:09 |
neon1024 |
You doubt yourself a lot |
# |
Dec 7th 2017, 14:09 |
birdy247 |
its quite involved |
# |
Dec 7th 2017, 14:09 |
birdy247 |
so is this a sign this method is in the wrong place? |
# |
Dec 7th 2017, 14:09 |
neon1024 |
They often don’t contain sufficient logic to warrant testing |
# |
Dec 7th 2017, 14:09 |
neon1024 |
In most cases I wouldn’t bother |
# |
Dec 7th 2017, 14:08 |
birdy247 |
like how would you test the getters and setters work as expected? |
# |
Dec 7th 2017, 14:05 |
birdy247 |
so would I create a test in the model? |
# |
Dec 7th 2017, 14:04 |
birdy247 |
into the entity |
# |
Dec 7th 2017, 14:04 |
birdy247 |
We have added a method called getPaymentDate |
# |
Dec 7th 2017, 14:04 |
neon1024 |
There is nothing to test, which is why bake doesn’t write any tests |
# |
Dec 7th 2017, 14:04 |
birdy247 |
dont need any tests? |
# |
Dec 7th 2017, 14:03 |
neon1024 |
Plain old php object |
# |
Dec 7th 2017, 14:03 |
birdy247 |
POPO ? |
# |
Dec 7th 2017, 14:03 |
johnwayne |
How can I call AppController from another class in another folder ex. src/Controller/Utils/lists.php (List class) and from there I want to call method from AppController |
# |
Dec 7th 2017, 14:03 |
birdy247 |
but presumably just making a new Entity folder and additing one myself is the way to test these methods |
# |
Dec 7th 2017, 14:03 |
neon1024 |
Well they’re POPO’s, they don’t need any |
# |
Dec 7th 2017, 14:03 |
birdy247 |
I notice that cake doesnt bake any tests for entities |
# |
Dec 7th 2017, 14:02 |
birdy247 |
@neon1024 thanks |
# |
Dec 7th 2017, 14:02 |
neon1024 |
No @birdy247 |
# |
Dec 7th 2017, 13:58 |
saeideng |
maybe needs to fix in debugKit |
# |
Dec 7th 2017, 13:58 |
birdy247 |
that are not just getters and setters? |
# |
Dec 7th 2017, 13:57 |
birdy247 |
Is it bad practice to put methods inside an entity? |
# |
Dec 7th 2017, 13:57 |
saeideng |
and I can not see it on debugKit |
# |
Dec 7th 2017, 13:57 |
saeideng |
I loaded external behavior |
# |
Dec 7th 2017, 13:54 |
obinoob |
I'm trying to run cakephp 3x under lighttpd but rewrite rules are failing... anyone has experience with it? my config https://gist.github.com/anonymous/23b1675dc43af7e66422b998d75d6384 |
# |
Dec 7th 2017, 13:51 |
saeideng |
solved |
# |
Dec 7th 2017, 13:50 |
saeideng |
and I can see loaded bahavior on debugKit |
# |
Dec 7th 2017, 13:50 |
saeideng |
Unknown method "saveWithImage" |
# |
Dec 7th 2017, 13:49 |
saeideng |
but i receive error |
# |
Dec 7th 2017, 13:49 |
dereuromark |
they just cant exist on table then, then they will be forwarded |
# |
Dec 7th 2017, 13:49 |
dereuromark |
sure, thats the idea |
# |
Dec 7th 2017, 13:48 |
saeideng |
can I access to bahavior method from controller like table method ? |
# |
Dec 7th 2017, 13:47 |
saeideng |
hi |
# |
Dec 7th 2017, 13:46 |
cakephp404 |
thanks |
# |
Dec 7th 2017, 13:45 |
cakephp404 |
something wrong with copy. I re-copy everything is ok |