# |
Jul 24th 2017, 09:56 |
neon1024 |
Guess I’ll just have to keep smashing my head against the desk until it starts working |
# |
Jul 24th 2017, 09:55 |
neon1024 |
The problem is that the controller method is the key part of the plugin |
# |
Jul 24th 2017, 09:54 |
hmic |
my 5ct are only: make sure you have a test datasource defined, and it actually works. |
# |
Jul 24th 2017, 09:54 |
neon1024 |
Testing a controller should be easy, but it isn’t. |
# |
Jul 24th 2017, 09:54 |
neon1024 |
I don’t really have the patience to battle the framework today |
# |
Jul 24th 2017, 09:53 |
neon1024 |
Might have to just skip testing my controller |
# |
Jul 24th 2017, 09:53 |
neon1024 |
So I have defined both |
# |
Jul 24th 2017, 09:53 |
neon1024 |
But they error if you don’t define the test datasource |
# |
Jul 24th 2017, 09:53 |
neon1024 |
Well all the objects default to the default datasource |
# |
Jul 24th 2017, 09:51 |
hmic |
you still need the test datasource defined IMHO |
# |
Jul 24th 2017, 09:51 |
neon1024 |
There isn’t one. I’m using SQLite |
# |
Jul 24th 2017, 09:51 |
hmic |
what does your test database setup look like? |
# |
Jul 24th 2017, 09:50 |
neon1024 |
The core.articles fixture |
# |
Jul 24th 2017, 09:50 |
neon1024 |
I’m getting the same error even with a concrete instance using a fixutre |
# |
Jul 24th 2017, 09:11 |
neon1024 |
Please can someone tell me why I keep seeing this in my tests? `Cake\Database\Exception: Cannot describe articles. It has 0 columns.` seems to be when I mock a table class, I have to define the schema for the mock to get around it. Do tables not support mocking? I’ve been using `$this->getMockForModel()` |
# |
Jul 24th 2017, 09:10 |
cleptric |
Can you gist some code? |
# |
Jul 24th 2017, 09:08 |
irongomme |
I wonder why $_hidden fields are visible when loaded in associated model in a json response ? I've seen issue 7110 closed in cakephp, but I still have this behavior ! |
# |
Jul 24th 2017, 09:07 |
cleptric |
sonu_nk; Yes, that’s ok |
# |
Jul 24th 2017, 09:07 |
irongomme |
Hi ! |
# |
Jul 24th 2017, 09:06 |
alexdd55 |
lol.. thats helpful, though :) |
# |
Jul 24th 2017, 09:05 |
cleptric |
But the migrations downgraded to 1.3 :( |
# |
Jul 24th 2017, 09:05 |
cleptric |
It installed 0.8.1 |
# |
Jul 24th 2017, 09:05 |
cleptric |
I just added `"robmorgan/phinx": "~0.8` to my apps composer file and updated |
# |
Jul 24th 2017, 09:04 |
alexdd55 |
ok, i kicked out the migrations package, that seems to work |
# |
Jul 24th 2017, 09:02 |
sonu_nk |
API key send in Header is a secure way ? |
# |
Jul 24th 2017, 09:01 |
alexdd55 |
is there a way to workaround that? |
# |
Jul 24th 2017, 09:01 |
cleptric |
We had some BC breaks before, so that’s the reason we pinned it to this release |
# |
Jul 24th 2017, 09:00 |
alexdd55 |
i can not even kick out migrations |
# |
Jul 24th 2017, 09:00 |
cleptric |
True! Totally forgot about that |
# |
Jul 24th 2017, 08:59 |
alexdd55 |
@cleptric haha.. i would do so, if it would be possible.. phinx isnot in the composer json, its a relation that has a hardcoded version number in cakephp migrations |
# |
Jul 24th 2017, 08:56 |
cleptric |
And then run `composer update` :;) |
# |
Jul 24th 2017, 08:56 |
cleptric |
Or change the version constraint in your `composer.json` |
# |
Jul 24th 2017, 08:56 |
cleptric |
`composer update` |
# |
Jul 24th 2017, 08:56 |
alexdd55 |
can anyone tell me, how to update phinx to a current version via composer? our admin is complainng, that the version is outdated |
# |
Jul 24th 2017, 08:55 |
sonu_nk |
https://github.com/cakephp/authentication this plugin also says same which you suggest |
# |
Jul 24th 2017, 08:53 |
sonu_nk |
admad should i go with middleware ? |
# |
Jul 24th 2017, 08:52 |
sonu_nk |
right ? |
# |
Jul 24th 2017, 08:52 |
sonu_nk |
hmic, i remember you suggest me to use Middleware |
# |
Jul 24th 2017, 08:38 |
admad |
depends on how you want your auth mechanism to work |
# |
Jul 24th 2017, 08:38 |
sonu_nk |
sorry wrong line pasted to you please ignore that... |
# |
Jul 24th 2017, 08:37 |
sonu_nk |
ok.. so after key verify i need to do email password fetch from db and then verify or not ? |