# |
Apr 12th 2019, 14:31 |
neon1024 |
Figured perhaps regex? But regex on json feels kinda wrong |
# |
Apr 12th 2019, 14:31 |
dereuromark |
write your own assertJson..() methods via trait |
# |
Apr 12th 2019, 14:30 |
neon1024 |
I can use `$this->assertResponseContains()`, but it doesn’t seem to do nesting |
# |
Apr 12th 2019, 14:30 |
neon1024 |
I’d like to ensure that `{ "call": { "features": "" } }` exists |
# |
Apr 12th 2019, 14:30 |
neon1024 |
What’s a good solution for doing integration testing on json to assert something exists inside another dimension of json? |
# |
Apr 12th 2019, 14:08 |
spencdev |
looks like `$this->request->session()` is where I can check how much time is left |
# |
Apr 12th 2019, 14:01 |
spencdev |
by interfering I mean extending the timeout, I'm just using the basic auth componenet |
# |
Apr 12th 2019, 13:59 |
dereuromark |
depens on how he is locked in. and checking the session is not really interfering with it is it? |
# |
Apr 12th 2019, 13:52 |
spencdev |
hey, been away from cake for awhile, is it possible to check if a user is logged in without interfering with the session? |
# |
Apr 12th 2019, 13:37 |
ricksaccous |
including all fields necessary for joining |
# |
Apr 12th 2019, 13:37 |
ricksaccous |
if you ->select you are required to specify fields in contain |
# |
Apr 12th 2019, 13:37 |
ricksaccous |
->select and within a contain 'fields' key |
# |
Apr 12th 2019, 13:36 |
liaogz82 |
say i want to show tag id |
# |
Apr 12th 2019, 13:36 |
liaogz82 |
how do I filter away the columns of tags? |
# |
Apr 12th 2019, 13:35 |
liaogz82 |
then for hasMany relationship say article has many tags |
# |
Apr 12th 2019, 13:35 |
liaogz82 |
ok |
# |
Apr 12th 2019, 13:15 |
josbeir |
there's many ways to do joins in the orm... |
# |
Apr 12th 2019, 13:15 |
josbeir |
@liaogz82 read up on associations, contain and query builder |
# |
Apr 12th 2019, 13:14 |
josbeir |
fridays... |
# |
Apr 12th 2019, 13:11 |
dereuromark |
one to many or one too mayn? :P |
# |
Apr 12th 2019, 13:09 |
liaogz82 |
its one to many |
# |
Apr 12th 2019, 13:07 |
liaogz82 |
if i want to do a left join across 3 tables how do i do it? |
# |
Apr 12th 2019, 13:05 |
liaogz82 |
hi guys |
# |
Apr 12th 2019, 13:00 |
josbeir |
no idea, never used it but i know some vagrant from back in the day.. not sure why one would still be using it now when there's docker etc... |
# |
Apr 12th 2019, 12:58 |
dereuromark |
i always thought he cakebox handles this on its own. |
# |
Apr 12th 2019, 12:54 |
josbeir |
and just set the date in your box using "sudo date -s <timestamp> |
# |
Apr 12th 2019, 12:53 |
josbeir |
did you link your host timezone to your machine one ? |
# |
Apr 12th 2019, 11:43 |
dereuromark |
would be nice if cakebox shipped with it by default :slightly_smiling_face: |
# |
Apr 12th 2019, 11:30 |
steinkel |
try installing ntp in your VM |
# |
Apr 12th 2019, 11:19 |
dereuromark |
gr, restarting the vagrant box helped, for now. quite the annoying issue |
# |
Apr 12th 2019, 11:02 |
dereuromark |
how is that possible, my OS clock says current correct time :S |
# |
Apr 12th 2019, 11:02 |
dereuromark |
oh, my vagrant machine says about current timestamp: ""2019-04-09 09:07:55"" |
# |
Apr 12th 2019, 10:49 |
dereuromark |
FrozenTime @1555058998 {#513 ▼ date: 2019-04-12 08:49:58.0 +00:00 } looks all correct |
# |
Apr 12th 2019, 10:47 |
dereuromark |
`pushed ' . $this->Time->nice($pushedAt) . ' (' . $this->Time->timeAgoInWords($pushedAt) . ')` |
# |
Apr 12th 2019, 10:46 |
dereuromark |
I have a super weird time bug.. pushed 12.04.2019, 10:49 (2 days, 23 hours) That is clearly not true, that was 2 hours ago.. |
# |
Apr 12th 2019, 09:44 |
conehead |
@kgb.acct.personal Okay, thanks ;) |
# |
Apr 12th 2019, 09:43 |
kgb.acct.personal |
@conehead No |
# |
Apr 12th 2019, 09:42 |
val |
Hi, is there an easy way to suppress the console output in unit tests of `CakeLog::info(...)` calls? |
# |
Apr 12th 2019, 09:34 |
conehead |
Hm I am currently migrating to cake 3. Wondering if I should migrate to cake 4 alpha instead.... :S |
# |
Apr 12th 2019, 09:16 |
megan |
Yupp :slightly_smiling_face: - first alpha release of CakePHP 4.0.0 Strawberry https://bakery.cakephp.org/2019/04/11/cakephp_400alpha1_released.html |
# |
Apr 12th 2019, 09:09 |
Martin` |
Oh it is the alpha release, not yet the final |