/** * @group set_upload_file_keys */ public function test_set_upload_file_keys_ファイルがなければNull() { $wp_upload_dir = wp_upload_dir(); $this->Data->set('file', $wp_upload_dir['url'] . '/1.txt'); $this->Data->push(MWF_Config::UPLOAD_FILE_KEYS, 'file'); $this->Data->set_upload_file_keys(); $this->assertSame(array(), $this->Data->get_post_value_by_key(MWF_Config::UPLOAD_FILE_KEYS)); }