{"author_url":"https://blog.hatena.ne.jp/at_yasu/","height":"190","blog_url":"https://atys.hateblo.jp/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","author_name":"at_yasu","version":"1.0","description":"AuthComponent \u3067\u3069\u3046\u3084\u3063\u3066 Mock \u3092\u66f8\u304f\u3093\u3060\u308d\u3046\u3068\u4eca\u9803\u306b\u306a\u3063\u3066\u7406\u89e3\u3067\u304d\u305f\u306e\u3067\u30e1\u30e2\u66f8\u304d <?php class AdminsControllerTest extends ControllerTestCase { public function setUp() { parent::setUp(); $Admins = $this->generate('Admins', array('components' => 'Auth')); $Admins->constructClasses(); // \u8a8d\u8a3c\u307e\u308f\u308a\u3092\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f7f\u308f\u305a\u306b mock \u3067\u3054\u307e\u304b\u3059 $Admins->Auth->\u2026","published":"2013-06-03 00:00:00","blog_title":"at_yasu's blog","image_url":null,"title":" CakePHP2 \u3067 Mock","url":"https://atys.hateblo.jp/entry/20130603/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatys.hateblo.jp%2Fentry%2F20130603%2Fp1\" title=\" CakePHP2 \u3067 Mock - at_yasu&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["cakephp","php"],"width":"100%"}